Skip to content

Commit 844473b

Browse files
committed
Fix test
1 parent b309dca commit 844473b

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

tests/iotools/test_meteonorm.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import numpy as np
33
import pytest
44
import pvlib
5-
from tests.conftest import RERUNS, RERUNS_DELAY
5+
from tests.conftest import RERUNS, RERUNS_DELAY, fail_on_pvlib_version
66
from requests.exceptions import HTTPError
77

88
from pvlib._deprecation import pvlibDeprecationWarning
@@ -319,11 +319,13 @@ def test_get_meteonorm_tmy(
319319

320320

321321
@fail_on_pvlib_version('0.17.0')
322+
@pytest.mark.remote_data
323+
@pytest.mark.flaky(reruns=RERUNS, reruns_delay=RERUNS_DELAY)
322324
def test_get_meteonorm_tmy_data_version_deprecation(demo_api_key):
323325
with pytest.warns(pvlibDeprecationWarning):
324326
_ = pvlib.iotools.get_meteonorm_tmy(
325-
latitude,
326-
longitude,
327+
latitude=50,
328+
longitude=10,
327329
api_key=demo_api_key,
328330
data_version="latest",
329331
)

0 commit comments

Comments
 (0)