@@ -21,41 +21,41 @@ def test_pvt_cdc() -> None:
21
21
epiweeks = EpiRange (201501 , 201601 )
22
22
)
23
23
data = apicall .df ()
24
- assert ( len (data ) > 0 )
24
+ assert len (data ) > 0
25
25
26
26
def test_pub_covid_hosp_facility_lookup () -> None :
27
27
apicall = Epidata .pub_covid_hosp_facility_lookup (state = "fl" )
28
28
data = apicall .df ()
29
- assert ( len (data ) > 0 )
29
+ assert len (data ) > 0
30
30
31
31
apicall = Epidata .pub_covid_hosp_facility_lookup (city = "southlake" )
32
32
data = apicall .df ()
33
- assert ( len (data ) > 0 )
33
+ assert len (data ) > 0
34
34
35
35
def test_pub_covid_hosp_facility () -> None :
36
36
apicall = Epidata .pub_covid_hosp_facility (
37
37
hospital_pks = "100075" ,
38
38
collection_weeks = EpiRange (20200101 , 20200501 ))
39
39
data = apicall .df ()
40
- assert ( len (data ) > 0 )
40
+ assert len (data ) > 0
41
41
42
42
apicall = Epidata .pub_covid_hosp_facility (
43
43
hospital_pks = "100075" ,
44
44
collection_weeks = EpiRange (202001 , 202005 ))
45
45
data = apicall .df ()
46
- assert ( len (data ) > 0 ) # fails
46
+ assert len (data ) > 0 # fails
47
47
48
48
def test_pub_covid_hosp_state_timeseries () -> None :
49
49
apicall = Epidata .pub_covid_hosp_state_timeseries (
50
50
states = "fl" ,
51
51
dates = EpiRange (20200101 , 20200501 ))
52
52
data = apicall .df ()
53
- assert ( len (data ) > 0 )
53
+ assert len (data ) > 0
54
54
55
55
def test_pub_covidcast_meta () -> None :
56
56
apicall = Epidata .pub_covidcast_meta ()
57
57
data = apicall .df ()
58
- assert ( len (data ) > 0 )
58
+ assert len (data ) > 0
59
59
60
60
def test_pub_covidcast () -> None :
61
61
apicall = Epidata .pub_covidcast (
@@ -66,7 +66,7 @@ def test_pub_covidcast() -> None:
66
66
geo_values = ["ca" , "fl" ],
67
67
time_values = EpiRange (20200601 , 20200801 ))
68
68
data = apicall .df ()
69
- assert ( len (data ) > 0 )
69
+ assert len (data ) > 0
70
70
71
71
apicall = Epidata .pub_covidcast (
72
72
data_source = "jhu-csse" ,
@@ -76,23 +76,23 @@ def test_pub_covidcast() -> None:
76
76
geo_values = "*" ,
77
77
time_values = EpiRange (20200601 , 20200801 ))
78
78
data = apicall .df ()
79
- assert ( len (data ) > 0 )
79
+ assert len (data ) > 0
80
80
81
81
def test_pub_delphi () -> None :
82
82
apicall = Epidata .pub_delphi (
83
83
system = "ec" ,
84
84
epiweek = 201501
85
85
)
86
86
data = apicall .classic () # only supports classic
87
- assert ( len (data ) > 0 )
87
+ assert len (data ) > 0
88
88
89
89
def test_pub_dengue_nowcast () -> None :
90
90
apicall = Epidata .pub_dengue_nowcast (
91
91
locations = "pr" ,
92
92
epiweeks = EpiRange (201401 , 202301 )
93
93
)
94
94
data = apicall .df ()
95
- assert ( len (data ) > 0 )
95
+ assert len (data ) > 0
96
96
97
97
def test_pvt_dengue_sensors () -> None :
98
98
apicall = Epidata .pvt_dengue_sensors (
@@ -102,52 +102,52 @@ def test_pvt_dengue_sensors() -> None:
102
102
epiweeks = EpiRange (201501 , 202001 )
103
103
)
104
104
data = apicall .df ()
105
- assert ( len (data ) > 0 )
105
+ assert len (data ) > 0
106
106
107
107
def test_pub_ecdc_ili () -> None :
108
108
apicall = Epidata .pub_ecdc_ili (
109
109
regions = "austria" ,
110
110
epiweeks = EpiRange (201901 , 202001 )
111
111
)
112
112
data = apicall .df (disable_date_parsing = True )
113
- assert ( len (data ) > 0 )
113
+ assert len (data ) > 0
114
114
115
115
def test_pub_flusurv () -> None :
116
116
apicall = Epidata .pub_flusurv (
117
117
locations = "CA" ,
118
118
epiweeks = EpiRange (201701 , 201801 )
119
119
)
120
120
data = apicall .df (disable_date_parsing = True )
121
- assert ( len (data ) > 0 )
121
+ assert len (data ) > 0
122
122
123
123
def test_pub_fluview_clinical () -> None :
124
124
apicall = Epidata .pub_fluview_clinical (
125
125
regions = "nat" ,
126
126
epiweeks = EpiRange (201601 , 201701 )
127
127
)
128
128
data = apicall .df (disable_date_parsing = True )
129
- assert ( len (data ) > 0 )
129
+ assert len (data ) > 0
130
130
131
131
def test_pub_fluview_meta () -> None :
132
132
apicall = Epidata .pub_fluview_meta ()
133
133
data = apicall .df (disable_date_parsing = True )
134
- assert ( len (data ) > 0 )
134
+ assert len (data ) > 0
135
135
136
136
def test_pub_fluview () -> None :
137
137
apicall = Epidata .pub_fluview (
138
138
regions = "nat" ,
139
139
epiweeks = EpiRange (201201 , 202005 )
140
140
)
141
141
data = apicall .df (disable_date_parsing = True )
142
- assert ( len (data ) > 0 )
142
+ assert len (data ) > 0
143
143
144
144
def test_pub_gft () -> None :
145
145
apicall = Epidata .pub_gft (
146
146
locations = "hhs1" ,
147
147
epiweeks = EpiRange (201201 , 202001 )
148
148
)
149
149
data = apicall .df ()
150
- assert ( len (data ) > 0 )
150
+ assert len (data ) > 0
151
151
152
152
def test_pvt_ght () -> None :
153
153
apicall = Epidata .pvt_ght (
@@ -157,43 +157,43 @@ def test_pvt_ght() -> None:
157
157
query = "how to get over the flu"
158
158
)
159
159
data = apicall .df ()
160
- assert ( len (data ) > 0 )
160
+ assert len (data ) > 0
161
161
162
162
def test_pub_kcdc_ili () -> None :
163
163
apicall = Epidata .pub_kcdc_ili (
164
164
regions = "ROK" ,
165
165
epiweeks = 200436
166
166
)
167
167
data = apicall .df (disable_date_parsing = True )
168
- assert ( len (data ) > 0 )
168
+ assert len (data ) > 0
169
169
170
170
def test_pvt_meta_norostat () -> None :
171
171
apicall = Epidata .pvt_meta_norostat (
172
172
auth = secret_norostat
173
173
)
174
174
data = apicall .classic ()
175
- assert ( len (data ) > 0 )
175
+ assert len (data ) > 0
176
176
177
177
def test_pub_meta () -> None :
178
178
apicall = Epidata .pub_meta ()
179
179
data = apicall .classic () # only supports classic
180
- assert ( len (data ) > 0 )
180
+ assert len (data ) > 0
181
181
182
182
def test_pub_nidss_dengue () -> None :
183
183
apicall = Epidata .pub_nidss_dengue (
184
184
locations = "taipei" ,
185
185
epiweeks = EpiRange (201201 , 201301 )
186
186
)
187
187
data = apicall .df ()
188
- assert ( len (data ) > 0 )
188
+ assert len (data ) > 0
189
189
190
190
def test_pub_nidss_flu () -> None :
191
191
apicall = Epidata .pub_nidss_flu (
192
192
regions = "taipei" ,
193
193
epiweeks = EpiRange (201501 , 201601 )
194
194
)
195
195
data = apicall .df (disable_date_parsing = True )
196
- assert ( len (data ) > 0 )
196
+ assert len (data ) > 0
197
197
198
198
def test_pvt_norostat () -> None :
199
199
apicall = Epidata .pvt_norostat (
@@ -203,23 +203,23 @@ def test_pvt_norostat() -> None:
203
203
)
204
204
data = apicall .df ()
205
205
# TODO: Norostat is known to not return data
206
- # assert( len(data) > 0)
206
+ # assert len(data) > 0
207
207
208
208
def test_pub_nowcast () -> None :
209
209
apicall = Epidata .pub_nowcast (
210
210
locations = "ca" ,
211
211
epiweeks = EpiRange (201201 , 201301 )
212
212
)
213
213
data = apicall .df ()
214
- assert ( len (data ) > 0 )
214
+ assert len (data ) > 0
215
215
216
216
def test_pub_paho_dengue () -> None :
217
217
apicall = Epidata .pub_paho_dengue (
218
218
regions = "ca" ,
219
219
epiweeks = EpiRange (201401 , 201501 )
220
220
)
221
221
data = apicall .df (disable_date_parsing = True )
222
- assert ( len (data ) > 0 )
222
+ assert len (data ) > 0
223
223
224
224
def test_pvt_quidel () -> None :
225
225
apicall = Epidata .pvt_quidel (
@@ -228,7 +228,7 @@ def test_pvt_quidel() -> None:
228
228
epiweeks = EpiRange (201201 , 202001 )
229
229
)
230
230
data = apicall .df ()
231
- assert ( len (data ) > 0 )
231
+ assert len (data ) > 0
232
232
233
233
def test_pvt_sensors () -> None :
234
234
apicall = Epidata .pvt_sensors (
@@ -238,7 +238,7 @@ def test_pvt_sensors() -> None:
238
238
epiweeks = EpiRange (201501 , 202001 )
239
239
)
240
240
data = apicall .df ()
241
- assert ( len (data ) > 0 )
241
+ assert len (data ) > 0
242
242
243
243
def test_pvt_twitter () -> None :
244
244
apicall = Epidata .pvt_twitter (
@@ -248,7 +248,7 @@ def test_pvt_twitter() -> None:
248
248
time_values = EpiRange (201501 , 202001 )
249
249
)
250
250
data = apicall .df ()
251
- assert ( len (data ) > 0 )
251
+ assert len (data ) > 0
252
252
253
253
def test_pub_wiki () -> None :
254
254
apicall = Epidata .pub_wiki (
@@ -257,4 +257,4 @@ def test_pub_wiki() -> None:
257
257
time_values = EpiRange (201501 , 201601 )
258
258
)
259
259
data = apicall .df ()
260
- assert ( len (data ) > 0 )
260
+ assert len (data ) > 0
0 commit comments