@@ -34,7 +34,7 @@ def test_epkg_module(self):
3434 if t1 not in html :
3535 raise AssertionError (html )
3636
37- t1 = "https://pandas.pydata.org/pandas- docs/stable /"
37+ t1 = "https://pandas.pydata.org/docs/"
3838 if t1 not in html :
3939 raise AssertionError (html )
4040
@@ -52,11 +52,8 @@ def test_epkg_module_twice(self):
5252 )
5353 content = content .replace ('u"' , '"' )
5454
55- html = rst2html (
56- content ,
57- writer_name = "rst" ,
58- )
59- self .assertIn ("https://pandas.pydata.org/pandas-docs/stable/" , html )
55+ html = rst2html (content , writer_name = "rst" )
56+ self .assertIn ("https://pandas.pydata.org/docs/" , html )
6057
6158 @ignore_warnings (PendingDeprecationWarning )
6259 def test_epkg_sub (self ):
@@ -117,7 +114,9 @@ def pandas_link(input):
117114 if t1 in html :
118115 raise AssertionError (f"\n **{ spl } **\n ----\n { html } " )
119116
120- t1 = "https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.to_html.html"
117+ t1 = (
118+ "https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.to_html.html"
119+ )
121120 if t1 not in html :
122121 raise AssertionError (html )
123122
@@ -143,13 +142,9 @@ def __call__(self, input):
143142
144143 self .assertIn ("abeforea" , html )
145144 self .assertIn ("aftera" , html )
146-
147145 self .assertNotIn ("`" , html )
148- self .assertIn ('https://johnmacfarlane.net/pandoc/"' , html )
149- self .assertIn (
150- "https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.to_html.html" ,
151- html ,
152- )
146+ self .assertIn ('https://pandoc.org/"' , html )
147+ self .assertIn ("https://pandas.pydata.org/docs/reference/api/pandas." , html )
153148
154149 @ignore_warnings (PendingDeprecationWarning )
155150 def test_epkg_function_string (self ):
@@ -179,7 +174,9 @@ def test_epkg_function_string(self):
179174 if t1 in html :
180175 raise AssertionError (f"\n **{ spl } **\n ----\n { html } " )
181176
182- t1 = "https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.to_html.html"
177+ t1 = (
178+ "https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.to_html.html"
179+ )
183180 if t1 not in html :
184181 raise AssertionError (html )
185182
0 commit comments