Skip to content

Commit fff385f

Browse files
committed
apply same fix to TMY test
1 parent 7c96071 commit fff385f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/iotools/test_meteonorm.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,9 @@ def test_get_meteonorm_tmy(
308308
interval_index=True,
309309
map_variables=False,
310310
url=demo_url)
311-
assert meta == expected_meteonorm_tmy_meta
311+
assert meta.items() >= expected_meteonorm_tmy_meta.items()
312+
for key in ['version', 'commit']:
313+
assert key in meta # value changes, so only check presence
312314
# meteonorm API only guarantees similar, not identical, results between
313315
# calls. so we allow a small amount of variation with atol.
314316
pd.testing.assert_frame_equal(data.iloc[:12], expected_meteonorm_tmy_data,

0 commit comments

Comments
 (0)