Skip to content

Commit 01ed3bd

Browse files
committed
Specific testing of default coerce_year value
1 parent 5ecdbf2 commit 01ed3bd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/iotools/test_pvgis.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,9 @@ def test_get_pvgis_tmy_coerce_year():
487487
for m, test_case in enumerate(noon_test_data):
488488
expected = pvgis_data[pvgis_data.index.month == m+1].iloc[12]
489489
assert all(test_case == expected)
490+
# Test that get_pvgis_tmy defaults to coerce_year=1990
491+
pvgis_data, _ = get_pvgis_tmy(45, 8)
492+
assert all(pvgis_data.index.year == 1990)
490493

491494

492495
@pytest.mark.remote_data

0 commit comments

Comments
 (0)