Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
aysim319 committed Sep 13, 2024
1 parent b4039c5 commit 4916465
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _delphi_utils_python/tests/validator/test_datafetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def raise_for_status(self):
{'source': 'covid-act-now', 'db_source': 'covid-act-now'}], 200)
elif "params" in kwargs and kwargs["params"] == {'signal': 'chng:inactive'}:
return MockResponse([{"signals": [{"active": False}]}], 200)
elif args[1] == 'https://api.delphi.cmu.edu/epidata/covidcast_meta/' and \
elif args[0] == 'https://api.delphi.cmu.edu/epidata/covidcast_meta/' and \
'delphi_epidata' in kwargs["headers"]["user-agent"]:
with open(f"{TEST_DIR}/test_data/sample_epidata_metadata.json") as f:
epidata = json.load(f)
Expand Down

0 comments on commit 4916465

Please sign in to comment.