Skip to content

Commit

Permalink
ENH: Bug fix for non-sorted keys for this test (ARM-DOE#883)
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamTheisen authored Nov 26, 2024
1 parent 20cbf85 commit ce7d471
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/discovery/test_asos.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ def test_get_ord():

def test_get_region():
my_keys = ['MDW', 'IGQ', 'ORD', '06C', 'PWK', 'LOT', 'GYY']
my_keys = sorted(my_keys)
time_window = [datetime(2020, 2, 4, 2, 0), datetime(2020, 2, 12, 10, 0)]
lat_window = (41.8781 - 0.5, 41.8781 + 0.5)
lon_window = (-87.6298 - 0.5, -87.6298 + 0.5)
with pytest.warns(UserWarning, match="No data available at station"):
my_asoses = act.discovery.get_asos_data(
time_window, lat_range=lat_window, lon_range=lon_window
)
asos_keys = list(my_asoses.keys())
asos_keys = sorted(list(my_asoses.keys()))
assert asos_keys == my_keys

0 comments on commit ce7d471

Please sign in to comment.