Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: Fixing airnow tests #886

Merged
merged 1 commit into from
Dec 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading