Skip to content

Commit 3bb41f4

Browse files
committed
lint: lint
1 parent 56c6a6e commit 3bb41f4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/test_epidata_calls.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
@pytest.mark.skipif(not auth, reason="DELPHI_EPIDATA_KEY not available.")
2424
class TestEpidataCalls:
25+
"""Make network call tests for Epidata."""
26+
2527
@pytest.mark.skipif(not secret_cdc, reason="CDC key not available.")
2628
def test_pvt_cdc(self) -> None:
2729
apicall = Epidata.pvt_cdc(auth=secret_cdc, locations="fl,ca", epiweeks=EpiRange(201501, 201601))
@@ -313,9 +315,10 @@ def test_pvt_norostat(self) -> None:
313315
data = apicall.df()
314316

315317
# TODO: Need a non-trivial query for Norostat
316-
# assert len(data) > 0
317-
# assert str(data['release_date'].dtype) == 'datetime64[ns]'
318-
# assert str(data['epiweek'].dtype) == 'string'
318+
assert len(data) > 0
319+
assert str(data["release_date"].dtype) == "datetime64[ns]"
320+
assert str(data["epiweek"].dtype) == "string"
321+
assert str(data["value"].dtype) == "Int64"
319322

320323
def test_pub_nowcast(self) -> None:
321324
apicall = Epidata.pub_nowcast(locations="ca", epiweeks=EpiRange(201201, 201301))

0 commit comments

Comments
 (0)