From 7c960716f9c86fdd1e6f0364711af55970c465f8 Mon Sep 17 00:00:00 2001 From: Kevin Anderson Date: Mon, 15 Dec 2025 09:22:45 -0500 Subject: [PATCH 1/2] update metadata checks --- tests/iotools/test_meteonorm.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/iotools/test_meteonorm.py b/tests/iotools/test_meteonorm.py index 2eeb93431f..f7149e6985 100644 --- a/tests/iotools/test_meteonorm.py +++ b/tests/iotools/test_meteonorm.py @@ -122,7 +122,9 @@ def test_get_meteonorm_training( time_step='1h', url=demo_url) - assert meta == expected_meta + assert meta.items() >= expected_meta.items() # check stable subset + for key in ['version', 'commit']: + assert key in meta # value changes, so only check presence pd.testing.assert_index_equal(data.index, expected_meteonorm_index) # meteonorm API only guarantees similar, not identical, results between # calls. so we allow a small amount of variation with atol. From fff385fd12aa66b8d9f3d8ed547e4249454cda06 Mon Sep 17 00:00:00 2001 From: Kevin Anderson Date: Mon, 15 Dec 2025 11:27:15 -0500 Subject: [PATCH 2/2] apply same fix to TMY test --- tests/iotools/test_meteonorm.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/iotools/test_meteonorm.py b/tests/iotools/test_meteonorm.py index f7149e6985..0bcaa10b00 100644 --- a/tests/iotools/test_meteonorm.py +++ b/tests/iotools/test_meteonorm.py @@ -308,7 +308,9 @@ def test_get_meteonorm_tmy( interval_index=True, map_variables=False, url=demo_url) - assert meta == expected_meteonorm_tmy_meta + assert meta.items() >= expected_meteonorm_tmy_meta.items() + for key in ['version', 'commit']: + assert key in meta # value changes, so only check presence # meteonorm API only guarantees similar, not identical, results between # calls. so we allow a small amount of variation with atol. pd.testing.assert_frame_equal(data.iloc[:12], expected_meteonorm_tmy_data,