test.py 319 B

1234567891011121314151617
  1. """
  2. Test application for api request. Change authorization if necessary
  3. """
  4. import requests
  5. URL = 'http://localhost:5000/'
  6. HEADERS = {
  7. 'Authorization': 'cGwJNNbIhrKiMKjA4DuVhzL2YH8DxPDV37N5SAb6UbhYtFhYzgwhtmVS4iVloyEu'
  8. }
  9. DATA = {
  10. 'test': 'true',
  11. }
  12. print(requests.get(URL, headers=HEADERS, data=DATA).text)