@@ -45,6 +45,8 @@ def test_find_csv_files(self):
45
45
path_prefix + 'ght/20200408_state_rawsearch.csv' ,
46
46
# valid national
47
47
path_prefix + 'valid/20200408_nation_sig.csv' ,
48
+ # valid hhs
49
+ path_prefix + 'valid/20200408_hhs_sig.csv' ,
48
50
# invalid
49
51
path_prefix + 'invalid/hello_world.csv' ,
50
52
# invalid day
@@ -68,10 +70,11 @@ def test_find_csv_files(self):
68
70
(glob_paths [0 ], ('fb_survey' , 'cli' , 'week' , 'county' , 202015 , expected_issue_week , delta_epiweeks (202015 , expected_issue_week ))),
69
71
(glob_paths [1 ], ('ght' , 'rawsearch' , 'day' , 'state' , time_value_day , expected_issue_day , (date .today () - date (year = time_value_day // 10000 , month = (time_value_day // 100 ) % 100 , day = time_value_day % 100 )).days )),
70
72
(glob_paths [2 ], ('valid' , 'sig' , 'day' , 'nation' , time_value_day , expected_issue_day , (date .today () - date (year = time_value_day // 10000 , month = (time_value_day // 100 ) % 100 , day = time_value_day % 100 )).days )),
71
- (glob_paths [3 ], None ),
73
+ (glob_paths [3 ], ( 'valid' , 'sig' , 'day' , 'hhs' , time_value_day , expected_issue_day , ( date . today () - date ( year = time_value_day // 10000 , month = ( time_value_day // 100 ) % 100 , day = time_value_day % 100 )). days ) ),
72
74
(glob_paths [4 ], None ),
73
75
(glob_paths [5 ], None ),
74
76
(glob_paths [6 ], None ),
77
+ (glob_paths [7 ], None ),
75
78
])
76
79
self .assertEqual (found , expected )
77
80
@@ -137,6 +140,7 @@ def make_row(
137
140
(make_row (geo_type = 'state' , geo_id = '48' ), 'geo_id' ),
138
141
(make_row (geo_type = 'state' , geo_id = 'iowa' ), 'geo_id' ),
139
142
(make_row (geo_type = 'nation' , geo_id = '0000' ), 'geo_id' ),
143
+ (make_row (geo_type = 'hhs' , geo_id = '0' ), 'geo_id' ),
140
144
(make_row (geo_type = 'province' , geo_id = 'ab' ), 'geo_type' ),
141
145
(make_row (se = '-1' ), 'se' ),
142
146
(make_row (geo_type = None ), 'geo_type' ),
0 commit comments