Skip to content

Commit b992a5e

Browse files
committed
fix solargist test; expect new error message
1 parent 31ccbb5 commit b992a5e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/iotools/test_solargis.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ def test_get_solargis_utc_start_timestamp(hourly_index_start_utc):
6565
@pytest.mark.flaky(reruns=RERUNS, reruns_delay=RERUNS_DELAY)
6666
def test_get_solargis_http_error():
6767
# Test if HTTPError is raised if date outside range is specified
68-
with pytest.raises(requests.HTTPError, match="data coverage"):
68+
match = r"request fromDate .* is before the available start date"
69+
with pytest.raises(requests.HTTPError, match=match):
6970
_, _ = pvlib.iotools.get_solargis(
7071
latitude=48.61259, longitude=20.827079,
7172
start='1920-01-01', end='1920-01-01', # date outside range

0 commit comments

Comments
 (0)