Skip to content

Commit 40d6cd2

Browse files
committed
forgot to mock in test_run
1 parent 8b6a0e6 commit 40d6cd2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nhsn/tests/conftest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ def params_w_patch(params):
6767
@pytest.fixture(scope="function")
6868
def run_as_module(params):
6969
with patch('sodapy.Socrata.get') as mock_get, \
70-
patch('sodapy.Socrata.get_metadata') as mock_get_metadata:
70+
patch('sodapy.Socrata.get_metadata') as mock_get_metadata, \
71+
patch('delphi_nhsn.pull.Epidata.covidcast_meta') as mock_covidcast_meta:
7172
def side_effect(*args, **kwargs):
7273
if kwargs['offset'] == 0:
7374
if "ua7e-t2fy" in args[0]:
@@ -78,5 +79,6 @@ def side_effect(*args, **kwargs):
7879
return []
7980
mock_get.side_effect = side_effect
8081
mock_get_metadata.return_value = {"rowsUpdatedAt": time.time()}
82+
mock_covidcast_meta.return_value = COVID_META_DATA
8183
run_module(params)
8284

0 commit comments

Comments
 (0)