Skip to content

Commit

Permalink
Fix date-dependent tests
Browse files Browse the repository at this point in the history
  • Loading branch information
FedericoCeratto authored and Federico Ceratto committed Aug 9, 2023
1 parent 8ecd284 commit 2484cd4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/tests/integ/test_private_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def privapi(client, subpath):
def test_private_api_asn_by_month(client):
url = "asn_by_month"
response = privapi(client, url)
assert len(response) > 1
assert len(response) > 0, response
r = response[0]
assert sorted(r.keys()) == ["date", "value"]
assert r["value"] > 10
Expand All @@ -32,10 +32,10 @@ def test_private_api_asn_by_month(client):
def test_private_api_countries_by_month(client):
url = "countries_by_month"
response = privapi(client, url)
assert len(response) > 1
assert len(response) > 0, response
r = response[0]
assert sorted(r.keys()) == ["date", "value"]
assert r["value"] > 10
assert r["value"] > 1
assert r["value"] < 1000
assert r["date"].endswith("T00:00:00+00:00")

Expand Down

0 comments on commit 2484cd4

Please sign in to comment.