File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,8 @@ def params_w_patch(params):
67
67
@pytest .fixture (scope = "function" )
68
68
def run_as_module (params ):
69
69
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 :
71
72
def side_effect (* args , ** kwargs ):
72
73
if kwargs ['offset' ] == 0 :
73
74
if "ua7e-t2fy" in args [0 ]:
@@ -78,5 +79,6 @@ def side_effect(*args, **kwargs):
78
79
return []
79
80
mock_get .side_effect = side_effect
80
81
mock_get_metadata .return_value = {"rowsUpdatedAt" : time .time ()}
82
+ mock_covidcast_meta .return_value = COVID_META_DATA
81
83
run_module (params )
82
84
You can’t perform that action at this time.
0 commit comments