Skip to content

Commit 8ed8c6b

Browse files
committed
mocking api call in google symptoms
1 parent fd50d9d commit 8ed8c6b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

google_symptoms/tests/conftest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def run_as_module():
7373
makedirs("receiving")
7474

7575
with mock.patch("delphi_google_symptoms.pull.initialize_credentials",
76-
return_value=None) as mock_credentials:
77-
with mock.patch("pandas_gbq.read_gbq", side_effect=[
78-
state_data, county_data]) as mock_read_gbq:
76+
return_value=None) as mock_credentials, \
77+
mock.patch("pandas_gbq.read_gbq", side_effect=[state_data, county_data]) as mock_read_gbq, \
78+
mock.patch("delphi_google_symptoms.run.Epidata.covidcast_meta", return_value=None) as mock_covidcast_meta:
7979
delphi_google_symptoms.run.run_module(params)

0 commit comments

Comments
 (0)