12345678910111213141516171819202122 |
- # %%
- import requests
- import json
- import os
- from results_output_JSON import df_to_json_records, write_to_json, read_from_json, filename_results, filename_searches, path
- url = 'http://127.0.0.1:5000/simple_get_query'
- # %%
- searches = read_from_json(os.path.join(path, filename_searches))
- results = read_from_json(os.path.join(path, filename_results))
- # %%
- results_check = []
- for search in searches:
- dto = {
- "queryList": [search]
- }
- x = requests.post(url, json = dto)
- results_check.append(json.loads(x.text))
- # %%
- results_check==results
- # %%
|