@@ -66,15 +66,20 @@ def test_generate_export_date_missing(self, params_w_no_date, logger, monkeypatc
66
66
assert num_export_days == expected_num_export_days
67
67
68
68
def generate_expected_start_end_dates (self , params_ , issue_date ):
69
+ # Actual dates reported on issue dates June 27-29, 2024, by the old
70
+ # version of the google-symptoms indicator
71
+ # (https://github.com/cmu-delphi/covidcast-indicators/tree/b338a0962bf3a63f70a83f0b719516f914b098e2).
72
+ # The patch module should be able to recreate these dates.
69
73
dates_dict = {
70
74
"2024-06-27" : [ '2024-06-02' , '2024-06-03' , '2024-06-04' , '2024-06-05' , '2024-06-06' , '2024-06-07' , '2024-06-08' , '2024-06-09' , '2024-06-10' , '2024-06-11' , '2024-06-12' , '2024-06-13' , '2024-06-14' , '2024-06-15' , '2024-06-16' , '2024-06-17' , '2024-06-18' , '2024-06-19' , '2024-06-20' , '2024-06-21' , '2024-06-22' ],
71
75
"2024-06-28" : ['2024-06-03' , '2024-06-04' , '2024-06-05' , '2024-06-06' , '2024-06-07' , '2024-06-08' , '2024-06-09' , '2024-06-10' , '2024-06-11' , '2024-06-12' , '2024-06-13' , '2024-06-14' , '2024-06-15' , '2024-06-16' , '2024-06-17' , '2024-06-18' , '2024-06-19' , '2024-06-20' , '2024-06-21' , '2024-06-22' , '2024-06-23' ],
72
76
"2024-06-29" : ['2024-06-04' , '2024-06-05' , '2024-06-06' ,'2024-06-07' , '2024-06-08' , '2024-06-09' , '2024-06-10' , '2024-06-11' , '2024-06-12' , '2024-06-13' , '2024-06-14' , '2024-06-15' , '2024-06-16' , '2024-06-17' , '2024-06-18' , '2024-06-19' , '2024-06-20' , '2024-06-21' , '2024-06-22' , '2024-06-23' , '2024-06-24' ],
73
77
}
74
78
75
79
dates_dict = {
76
- datetime .strptime (key , "%Y-%m-%d" ): [datetime .strptime (lvalue , "%Y-%m-%d" ) for lvalue in value ]
77
- for key , value in dates_dict .items ()
80
+ datetime .strptime (key , "%Y-%m-%d" ): [
81
+ datetime .strptime (listvalue , "%Y-%m-%d" ) for listvalue in value
82
+ ] for key , value in dates_dict .items ()
78
83
}
79
84
80
85
dates = dates_dict [issue_date ]
0 commit comments