@@ -378,7 +378,7 @@ def _compare_pvgis_tmy_json(expected, month_year_expected, inputs_expected,
378378 meta_expected , pvgis_data ):
379379 data , months_selected , inputs , meta = pvgis_data
380380 # check each column of output separately
381- for outvar in meta_expected ['outputs' ]['tmy_hourly' ]['variables' ]. keys () :
381+ for outvar in meta_expected ['outputs' ]['tmy_hourly' ]['variables' ]:
382382 assert np .allclose (data [outvar ], expected [outvar ])
383383 assert np .allclose (
384384 [_ ['month' ] for _ in months_selected ], np .arange (1 , 13 , 1 ))
@@ -430,7 +430,7 @@ def test_get_pvgis_tmy_basic(expected, meta_expected):
430430def _compare_pvgis_tmy_basic (expected , meta_expected , pvgis_data ):
431431 data , _ , _ , _ = pvgis_data
432432 # check each column of output separately
433- for outvar in meta_expected ['outputs' ]['tmy_hourly' ]['variables' ]. keys () :
433+ for outvar in meta_expected ['outputs' ]['tmy_hourly' ]['variables' ]:
434434 assert np .allclose (data [outvar ], expected [outvar ])
435435
436436
@@ -447,7 +447,7 @@ def _compare_pvgis_tmy_csv(expected, month_year_expected, inputs_expected,
447447 meta_expected , csv_meta , pvgis_data ):
448448 data , months_selected , inputs , meta = pvgis_data
449449 # check each column of output separately
450- for outvar in meta_expected ['outputs' ]['tmy_hourly' ]['variables' ]. keys () :
450+ for outvar in meta_expected ['outputs' ]['tmy_hourly' ]['variables' ]:
451451 assert np .allclose (data [outvar ], expected [outvar ])
452452 assert np .allclose (
453453 [_ ['month' ] for _ in months_selected ], np .arange (1 , 13 , 1 ))
0 commit comments