Skip to content

Commit d507809

Browse files
authored
fix tests (pvlib#2583)
1 parent c052fe8 commit d507809

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/iotools/test_meteonorm.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ def expected_meteonorm_data():
7272
[0.0, 0.0],
7373
[0.0, 0.0],
7474
[2.5, 2.68],
75-
[77.5, 77.47],
76-
[165.0, 164.98],
77-
[210.75, 210.74],
75+
[77.5, 77.48],
76+
[165.0, 164.99],
77+
[210.75, 210.75],
7878
[221.0, 220.99],
7979
]
8080
index = pd.date_range('2023-01-01 00:30', periods=12, freq='1h', tz='UTC')
@@ -207,7 +207,7 @@ def test_get_meteonorm_custom_horizon(demo_api_key, demo_url):
207207
@pytest.mark.flaky(reruns=RERUNS, reruns_delay=RERUNS_DELAY)
208208
def test_get_meteonorm_forecast_HTTPError(demo_api_key, demo_url):
209209
with pytest.raises(
210-
HTTPError, match="unknown parameter: not_a_real_parameter"):
210+
HTTPError, match='invalid parameter "not_a_real_parameter"'):
211211
_ = pvlib.iotools.get_meteonorm_forecast_basic(
212212
latitude=50, longitude=10,
213213
start=pd.Timestamp.now(tz='UTC'),
@@ -265,9 +265,9 @@ def expected_meteonorm_tmy_data():
265265
[0.],
266266
[0.],
267267
[0.],
268-
[9.06],
269-
[8.43],
270-
[86.63],
268+
[9.07],
269+
[8.44],
270+
[86.64],
271271
[110.44],
272272
]
273273
index = pd.date_range(

0 commit comments

Comments
 (0)