From ce7d471d7d97a8223ee3649d472c813c4412792e Mon Sep 17 00:00:00 2001 From: Adam Theisen Date: Tue, 26 Nov 2024 14:58:10 -0600 Subject: [PATCH] ENH: Bug fix for non-sorted keys for this test (#883) --- tests/discovery/test_asos.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/discovery/test_asos.py b/tests/discovery/test_asos.py index f0fba1592b..1c51a2a330 100644 --- a/tests/discovery/test_asos.py +++ b/tests/discovery/test_asos.py @@ -19,6 +19,7 @@ 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) @@ -26,5 +27,5 @@ def test_get_region(): 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