@@ -14,11 +14,12 @@ def test_read_srml():
14
14
srml .read_srml (srml_testfile )
15
15
16
16
17
- @pytest .mark .skip (reason = "SRML server is undergoing maintenance as of 12-2023" )
18
17
@pytest .mark .remote_data
19
18
@pytest .mark .flaky (reruns = RERUNS , reruns_delay = RERUNS_DELAY )
20
19
def test_read_srml_remote ():
21
- srml .read_srml ('http://solardat.uoregon.edu/download/Archive/EUPO1801.txt' )
20
+ srml .read_srml (
21
+ 'http://solardata.uoregon.edu/download/Archive/EUPO1801.txt'
22
+ )
22
23
23
24
24
25
def test_read_srml_columns_exist ():
@@ -47,11 +48,10 @@ def test_read_srml_nans_exist():
47
48
assert data ['dni_0_flag' ].iloc [1119 ] == 99
48
49
49
50
50
- @pytest .mark .skip (reason = "SRML server is undergoing maintenance as of 12-2023" )
51
51
@pytest .mark .parametrize ('url,year,month' , [
52
- ('http://solardat .uoregon.edu/download/Archive/EUPO1801.txt' ,
52
+ ('http://solardata .uoregon.edu/download/Archive/EUPO1801.txt' ,
53
53
2018 , 1 ),
54
- ('http://solardat .uoregon.edu/download/Archive/EUPO1612.txt' ,
54
+ ('http://solardata .uoregon.edu/download/Archive/EUPO1612.txt' ,
55
55
2016 , 12 ),
56
56
])
57
57
@pytest .mark .remote_data
@@ -78,30 +78,27 @@ def test__map_columns(column, expected):
78
78
assert srml ._map_columns (column ) == expected
79
79
80
80
81
- @pytest .mark .skip (reason = "SRML server is undergoing maintenance as of 12-2023" )
82
81
@pytest .mark .remote_data
83
82
@pytest .mark .flaky (reruns = RERUNS , reruns_delay = RERUNS_DELAY )
84
83
def test_get_srml ():
85
- url = 'http://solardat .uoregon.edu/download/Archive/EUPO1801.txt'
84
+ url = 'http://solardata .uoregon.edu/download/Archive/EUPO1801.txt'
86
85
file_data = srml .read_srml (url )
87
86
requested , _ = srml .get_srml (station = 'EU' , start = '2018-01-01' ,
88
87
end = '2018-01-31' )
89
88
assert_frame_equal (file_data , requested )
90
89
91
90
92
- @pytest .mark .skip (reason = "SRML server is undergoing maintenance as of 12-2023" )
93
91
@fail_on_pvlib_version ('0.11' )
94
92
@pytest .mark .remote_data
95
93
@pytest .mark .flaky (reruns = RERUNS , reruns_delay = RERUNS_DELAY )
96
94
def test_read_srml_month_from_solardat ():
97
- url = 'http://solardat .uoregon.edu/download/Archive/EUPO1801.txt'
95
+ url = 'http://solardata .uoregon.edu/download/Archive/EUPO1801.txt'
98
96
file_data = srml .read_srml (url )
99
97
with pytest .warns (pvlibDeprecationWarning , match = 'get_srml instead' ):
100
98
requested = srml .read_srml_month_from_solardat ('EU' , 2018 , 1 )
101
99
assert file_data .equals (requested )
102
100
103
101
104
- @pytest .mark .skip (reason = "SRML server is undergoing maintenance as of 12-2023" )
105
102
@fail_on_pvlib_version ('0.11' )
106
103
@pytest .mark .remote_data
107
104
@pytest .mark .flaky (reruns = RERUNS , reruns_delay = RERUNS_DELAY )
@@ -117,7 +114,6 @@ def test_15_minute_dt_index():
117
114
assert (data .index [3 ::4 ].minute == 45 ).all ()
118
115
119
116
120
- @pytest .mark .skip (reason = "SRML server is undergoing maintenance as of 12-2023" )
121
117
@fail_on_pvlib_version ('0.11' )
122
118
@pytest .mark .remote_data
123
119
@pytest .mark .flaky (reruns = RERUNS , reruns_delay = RERUNS_DELAY )
@@ -133,7 +129,6 @@ def test_hourly_dt_index():
133
129
assert (data .index .minute == 0 ).all ()
134
130
135
131
136
- @pytest .mark .skip (reason = "SRML server is undergoing maintenance as of 12-2023" )
137
132
@pytest .mark .remote_data
138
133
@pytest .mark .flaky (reruns = RERUNS , reruns_delay = RERUNS_DELAY )
139
134
def test_get_srml_hourly ():
@@ -144,7 +139,6 @@ def test_get_srml_hourly():
144
139
assert_index_equal (data .index , expected_index )
145
140
146
141
147
- @pytest .mark .skip (reason = "SRML server is undergoing maintenance as of 12-2023" )
148
142
@pytest .mark .remote_data
149
143
@pytest .mark .flaky (reruns = RERUNS , reruns_delay = RERUNS_DELAY )
150
144
def test_get_srml_minute ():
@@ -162,7 +156,6 @@ def test_get_srml_minute():
162
156
assert meta ['filenames' ] == ['EUPO1801.txt' ]
163
157
164
158
165
- @pytest .mark .skip (reason = "SRML server is undergoing maintenance as of 12-2023" )
166
159
@pytest .mark .remote_data
167
160
@pytest .mark .flaky (reruns = RERUNS , reruns_delay = RERUNS_DELAY )
168
161
def test_get_srml_nonexisting_month_warning ():
0 commit comments