From f84779ede44ecdd75e7b1758cdca32d3591c0453 Mon Sep 17 00:00:00 2001 From: "Adam R. Jensen" <39184289+AdamRJensen@users.noreply.github.com> Date: Fri, 1 Dec 2023 15:46:54 +0100 Subject: [PATCH] Update test_srml.py --- pvlib/tests/iotools/test_srml.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pvlib/tests/iotools/test_srml.py b/pvlib/tests/iotools/test_srml.py index 7e586dd9b3..308ea3a3a1 100644 --- a/pvlib/tests/iotools/test_srml.py +++ b/pvlib/tests/iotools/test_srml.py @@ -14,6 +14,7 @@ def test_read_srml(): srml.read_srml(srml_testfile) +@pytest.mark.skip(reason="SRML server is undergoing maintenance as of 12-2023") @pytest.mark.remote_data @pytest.mark.flaky(reruns=RERUNS, reruns_delay=RERUNS_DELAY) def test_read_srml_remote(): @@ -46,6 +47,7 @@ def test_read_srml_nans_exist(): assert data['dni_0_flag'].iloc[1119] == 99 +@pytest.mark.skip(reason="SRML server is undergoing maintenance as of 12-2023") @pytest.mark.parametrize('url,year,month', [ ('http://solardat.uoregon.edu/download/Archive/EUPO1801.txt', 2018, 1), @@ -76,6 +78,7 @@ def test__map_columns(column, expected): assert srml._map_columns(column) == expected +@pytest.mark.skip(reason="SRML server is undergoing maintenance as of 12-2023") @pytest.mark.remote_data @pytest.mark.flaky(reruns=RERUNS, reruns_delay=RERUNS_DELAY) def test_get_srml(): @@ -86,6 +89,7 @@ def test_get_srml(): assert_frame_equal(file_data, requested) +@pytest.mark.skip(reason="SRML server is undergoing maintenance as of 12-2023") @fail_on_pvlib_version('0.11') @pytest.mark.remote_data @pytest.mark.flaky(reruns=RERUNS, reruns_delay=RERUNS_DELAY) @@ -97,6 +101,7 @@ def test_read_srml_month_from_solardat(): assert file_data.equals(requested) +@pytest.mark.skip(reason="SRML server is undergoing maintenance as of 12-2023") @fail_on_pvlib_version('0.11') @pytest.mark.remote_data @pytest.mark.flaky(reruns=RERUNS, reruns_delay=RERUNS_DELAY) @@ -112,6 +117,7 @@ def test_15_minute_dt_index(): assert (data.index[3::4].minute == 45).all() +@pytest.mark.skip(reason="SRML server is undergoing maintenance as of 12-2023") @fail_on_pvlib_version('0.11') @pytest.mark.remote_data @pytest.mark.flaky(reruns=RERUNS, reruns_delay=RERUNS_DELAY) @@ -127,6 +133,7 @@ def test_hourly_dt_index(): assert (data.index.minute == 0).all() +@pytest.mark.skip(reason="SRML server is undergoing maintenance as of 12-2023") @pytest.mark.remote_data @pytest.mark.flaky(reruns=RERUNS, reruns_delay=RERUNS_DELAY) def test_get_srml_hourly(): @@ -137,6 +144,7 @@ def test_get_srml_hourly(): assert_index_equal(data.index, expected_index) +@pytest.mark.skip(reason="SRML server is undergoing maintenance as of 12-2023") @pytest.mark.remote_data @pytest.mark.flaky(reruns=RERUNS, reruns_delay=RERUNS_DELAY) def test_get_srml_minute(): @@ -154,6 +162,7 @@ def test_get_srml_minute(): assert meta['filenames'] == ['EUPO1801.txt'] +@pytest.mark.skip(reason="SRML server is undergoing maintenance as of 12-2023") @pytest.mark.remote_data @pytest.mark.flaky(reruns=RERUNS, reruns_delay=RERUNS_DELAY) def test_get_srml_nonexisting_month_warning():