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