Skip to content

Commit

Permalink
ENH: Fixing airnow tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamTheisen committed Dec 9, 2024
1 parent ce7d471 commit 7f0e691
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/discovery/test_airnow.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ def test_get_airnow():
assert results['ReportingArea'][3] == 'Aurora and Elgin'

results = act.discovery.get_airnow_obs(token, date='2022-05-01', zipcode=60108, distance=50)
assert results['AQI'].values[0] == 26
assert results['ParameterName'].values[1] == 'PM2.5'
assert results['AQI'].values[0] == 13
assert results['ParameterName'].values[0] == 'PM2.5'
assert results['CategoryName'].values[0] == 'Good'

results = act.discovery.get_airnow_obs(token, zipcode=60108, distance=50)
Expand All @@ -40,8 +40,8 @@ def test_get_airnow():
results = act.discovery.get_airnow_obs(
token, date='2022-05-01', distance=50, latlon=[41.958, -88.12]
)
assert results['AQI'].values[0] == 26
assert results['ParameterName'].values[1] == 'PM2.5'
assert results['AQI'].values[0] == 13
assert results['ParameterName'].values[0] == 'PM2.5'
assert results['CategoryName'].values[0] == 'Good'

lat_lon = '-88.245401,41.871346,-87.685099,42.234359'
Expand Down

0 comments on commit 7f0e691

Please sign in to comment.