@@ -225,36 +225,6 @@ def test_custom_404_page(self, os_view_mock, os_serve_mock):
225
225
self .assertEqual (response .status_code , 404 )
226
226
self .assertTrue (response ['X-Accel-Redirect' ].endswith ('/public/en/latest/404.html' ))
227
227
228
- def test_default_robots_txt (self ):
229
- self .public .versions .update (active = True , built = True )
230
- self .public .versions .filter (slug = STABLE ).update (privacy_level = constants .PRIVATE )
231
- response = self .client .get (
232
- reverse ('sitemap_xml' ),
233
- HTTP_HOST = 'public.readthedocs.io' ,
234
- )
235
- self .assertEqual (response .status_code , 200 )
236
- self .assertEqual (response .content_type , 'application/xml' )
237
- for version in self .public .versions .filter (privacy_level = constants .PUBLIC ):
238
- self .assertContains (
239
- response ,
240
- self .public .get_docs_url (
241
- version_slug = version .slug ,
242
- lang_slug = self .project .language ,
243
- private = False ,
244
- ),
245
- )
246
-
247
- # stable is marked as PRIVATE and should not appear here
248
- stable = self .public .versions .get (slug = STABLE )
249
- self .assertNotContains (
250
- response ,
251
- self .public .get_docs_url (
252
- version_slug = stable .slug ,
253
- lang_slug = self .project .language ,
254
- private = True ,
255
- ),
256
- )
257
-
258
228
def test_sitemap_xml (self ):
259
229
self .public .versions .update (active = True )
260
230
private_version = fixture .get (
0 commit comments