Skip to content

Commit

Permalink
fix found with e2e test :)
Browse files Browse the repository at this point in the history
  • Loading branch information
AvangardAA committed Oct 27, 2023
1 parent a691e4c commit 40f54d7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/e2e/e2e_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ async def test_get_reports_200(self):
async with httpx.AsyncClient() as client:

response = await client.get(
"http://127.0.0.1:8000/api/report?report_name=dummy1&ffrom=2023-19-10-07:00&to=2023-23-10-07:00&ver=1")
"http://127.0.0.1:8000/api/report?report_name=dummy&ffrom=2023-19-10-07:00&to=2023-23-10-07:00&ver=1")

if response.status_code == 307:
location = response.headers.get("Location")
Expand All @@ -77,8 +77,8 @@ async def test_get_reports_200(self):
else:
try:
parsed_data = json.loads(data)
self.assertIsInstance(parsed_data, dict)
self.assertTrue(len(parsed_data)==1)
self.assertIsInstance(parsed_data, list)
self.assertTrue(len(parsed_data)==2)
except json.JSONDecodeError:
self.fail("Response is not valid JSON")

Expand Down

0 comments on commit 40f54d7

Please sign in to comment.