File tree Expand file tree Collapse file tree 1 file changed +5
-16
lines changed Expand file tree Collapse file tree 1 file changed +5
-16
lines changed Original file line number Diff line number Diff line change 51
51
good_input ["county" ], parse_dates = ["date" ])[keep_cols ]
52
52
53
53
54
- # Set up fake list of dates to fetch.
55
- dates = [
56
- "20200726" ,
57
- "20200811"
58
- ]
59
-
60
- date_list = [datetime .strptime (date , "%Y%m%d" ) for date in dates ]
61
-
62
-
63
54
@pytest .fixture (scope = "session" )
64
55
def run_as_module ():
65
56
params = {
@@ -81,10 +72,8 @@ def run_as_module():
81
72
else :
82
73
makedirs ("receiving" )
83
74
84
- with mock .patch ("delphi_google_symptoms.pull.get_date_range" ,
85
- return_value = date_list ) as mock_all_dates :
86
- with mock .patch ("delphi_google_symptoms.pull.initialize_credentials" ,
87
- return_value = None ) as mock_credentials :
88
- with mock .patch ("pandas_gbq.read_gbq" , side_effect = [
89
- state_data , county_data ]) as mock_read_gbq :
90
- delphi_google_symptoms .run .run_module (params )
75
+ 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 :
79
+ delphi_google_symptoms .run .run_module (params )
You can’t perform that action at this time.
0 commit comments