@@ -384,7 +384,7 @@ def pvgis_tmy_mapped_columns():
384
384
@pytest .mark .flaky (reruns = RERUNS , reruns_delay = RERUNS_DELAY )
385
385
def test_get_pvgis_tmy (expected , month_year_expected , inputs_expected ,
386
386
meta_expected ):
387
- pvgis_data = get_pvgis_tmy (45 , 8 , map_variables = False )
387
+ pvgis_data = get_pvgis_tmy (45 , 8 , map_variables = False , coerce_year = None )
388
388
_compare_pvgis_tmy_json (expected , month_year_expected , inputs_expected ,
389
389
meta_expected , pvgis_data )
390
390
@@ -428,7 +428,8 @@ def test_get_pvgis_tmy_kwargs(userhorizon_expected):
428
428
_ , meta = get_pvgis_tmy (45 , 8 , usehorizon = False , map_variables = False )
429
429
assert meta ['inputs' ]['meteo_data' ]['use_horizon' ] is False
430
430
data , _ = get_pvgis_tmy (
431
- 45 , 8 , userhorizon = [0 , 10 , 20 , 30 , 40 , 15 , 25 , 5 ], map_variables = False )
431
+ 45 , 8 , userhorizon = [0 , 10 , 20 , 30 , 40 , 15 , 25 , 5 ], map_variables = False ,
432
+ coerce_year = None )
432
433
assert np .allclose (
433
434
data ['G(h)' ], userhorizon_expected ['G(h)' ].values )
434
435
assert np .allclose (
@@ -491,10 +492,11 @@ def test_get_pvgis_tmy_coerce_year():
491
492
@pytest .mark .remote_data
492
493
@pytest .mark .flaky (reruns = RERUNS , reruns_delay = RERUNS_DELAY )
493
494
def test_get_pvgis_tmy_csv (expected , month_year_expected , inputs_expected ,
494
- meta_expected , csv_meta ):
495
+ meta_expected , csv_meta , coerce_year = None ):
495
496
pvgis_data = get_pvgis_tmy (45 , 8 , outputformat = 'csv' , map_variables = False )
496
497
_compare_pvgis_tmy_csv (expected , month_year_expected , inputs_expected ,
497
- meta_expected , csv_meta , pvgis_data )
498
+ meta_expected , csv_meta , pvgis_data ,
499
+ coerce_year = None )
498
500
499
501
500
502
def _compare_pvgis_tmy_csv (expected , month_year_expected , inputs_expected ,
@@ -532,7 +534,8 @@ def _compare_pvgis_tmy_csv(expected, month_year_expected, inputs_expected,
532
534
@pytest .mark .remote_data
533
535
@pytest .mark .flaky (reruns = RERUNS , reruns_delay = RERUNS_DELAY )
534
536
def test_get_pvgis_tmy_epw (expected , epw_meta ):
535
- pvgis_data = get_pvgis_tmy (45 , 8 , outputformat = 'epw' , map_variables = False )
537
+ pvgis_data = get_pvgis_tmy (45 , 8 , outputformat = 'epw' , map_variables = False ,
538
+ coerce_year = None )
536
539
_compare_pvgis_tmy_epw (expected , epw_meta , pvgis_data )
537
540
538
541
0 commit comments