Use dummy cache in tests
@@ -232,6 +232,11 @@ class TestDocServingBackends(BaseDocServing):
PYTHON_MEDIA=False,
PUBLIC_DOMAIN='readthedocs.io',
RTD_BUILD_MEDIA_STORAGE='readthedocs.rtd_tests.storage.BuildMediaFileSystemStorageTest',
+ CACHES={
+ 'default': {
+ 'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
+ }
+ }
)
class TestAdditionalDocViews(BaseDocServing):
# Test that robots.txt and sitemap.xml work
@@ -326,7 +331,8 @@ class TestAdditionalDocViews(BaseDocServing):
self.project.versions.update(active=True, built=True)
# Confirm we've serving from storage for the `index-exists/index.html` file
response = self.client.get(
- reverse('proxito_404_handler', kwargs={'proxito_path': '/en/latest/index-exists?foo=bar'}),
+ reverse('proxito_404_handler', kwargs={
+ 'proxito_path': '/en/latest/index-exists?foo=bar'}),
HTTP_HOST='project.readthedocs.io',
)
self.assertEqual(
