Skip to content

Commit 2a7f6bd

Browse files
committed
More fixes on tests
1 parent 2f41620 commit 2a7f6bd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

readthedocs/rtd_tests/tests/test_doc_serving.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ def test_robots_txt(self):
104104
self.assertEqual(response.status_code, 404)
105105

106106
@override_settings(
107-
PYTHON_MEDIA=False,
108107
USE_SUBDOMAIN=True,
109108
PUBLIC_DOMAIN='readthedocs.io',
110109
ROOT_URLCONF=settings.SUBDOMAIN_URLCONF,
@@ -224,6 +223,11 @@ def test_custom_404_page(self, os_view_mock, os_serve_mock):
224223
self.assertEqual(response.status_code, 404)
225224
self.assertTrue(response['X-Accel-Redirect'].endswith('/public/en/latest/404.html'))
226225

226+
@override_settings(
227+
USE_SUBDOMAIN=True,
228+
PUBLIC_DOMAIN='readthedocs.io',
229+
ROOT_URLCONF=settings.SUBDOMAIN_URLCONF,
230+
)
227231
def test_sitemap_xml(self):
228232
self.public.versions.update(active=True)
229233
private_version = fixture.get(

0 commit comments

Comments
 (0)