@@ -134,9 +134,15 @@ def test_to_html_compat(self):
134
134
tm .assert_frame_equal (res , df )
135
135
136
136
@pytest .mark .network
137
- @tm .network
137
+ @tm .network (
138
+ url = (
139
+ "https://www.fdic.gov/resources/resolutions/"
140
+ "bank-failures/failed-bank-list/index.html"
141
+ ),
142
+ check_before_test = True ,
143
+ )
138
144
def test_banklist_url_positional_match (self ):
139
- url = "http ://www.fdic.gov/resources/resolutions/bank-failures/failed-bank-list/index.html" # noqa E501
145
+ url = "https ://www.fdic.gov/resources/resolutions/bank-failures/failed-bank-list/index.html" # noqa E501
140
146
# Passing match argument as positional should cause a FutureWarning.
141
147
with tm .assert_produces_warning (FutureWarning ):
142
148
df1 = self .read_html (
@@ -154,9 +160,15 @@ def test_banklist_url_positional_match(self):
154
160
assert_framelist_equal (df1 , df2 )
155
161
156
162
@pytest .mark .network
157
- @tm .network
163
+ @tm .network (
164
+ url = (
165
+ "https://www.fdic.gov/resources/resolutions/"
166
+ "bank-failures/failed-bank-list/index.html"
167
+ ),
168
+ check_before_test = True ,
169
+ )
158
170
def test_banklist_url (self ):
159
- url = "http ://www.fdic.gov/resources/resolutions/bank-failures/failed-bank-list/index.html" # noqa E501
171
+ url = "https ://www.fdic.gov/resources/resolutions/bank-failures/failed-bank-list/index.html" # noqa E501
160
172
df1 = self .read_html (
161
173
# lxml cannot find attrs leave out for now
162
174
url ,
@@ -171,7 +183,13 @@ def test_banklist_url(self):
171
183
assert_framelist_equal (df1 , df2 )
172
184
173
185
@pytest .mark .network
174
- @tm .network
186
+ @tm .network (
187
+ url = (
188
+ "https://raw.githubusercontent.com/pandas-dev/pandas/main/"
189
+ "pandas/tests/io/data/html/spam.html"
190
+ ),
191
+ check_before_test = True ,
192
+ )
175
193
def test_spam_url (self ):
176
194
url = (
177
195
"https://raw.githubusercontent.com/pandas-dev/pandas/main/"
@@ -409,14 +427,14 @@ def test_negative_skiprows(self):
409
427
self .read_html (self .spam_data , match = "Water" , skiprows = - 1 )
410
428
411
429
@pytest .mark .network
412
- @tm .network
430
+ @tm .network ( url = "https://docs.python.org/2/" , check_before_test = True )
413
431
def test_multiple_matches (self ):
414
432
url = "https://docs.python.org/2/"
415
433
dfs = self .read_html (url , match = "Python" )
416
434
assert len (dfs ) > 1
417
435
418
436
@pytest .mark .network
419
- @tm .network
437
+ @tm .network ( url = "https://docs.python.org/2/" , check_before_test = True )
420
438
def test_python_docs_table (self ):
421
439
url = "https://docs.python.org/2/"
422
440
dfs = self .read_html (url , match = "Python" )
0 commit comments