Skip to content

Commit 2cce9dc

Browse files
committed
Use dummy cache in tests
1 parent 74e1de8 commit 2cce9dc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

readthedocs/proxito/tests/test_full.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,11 @@ def test_project_nginx_serving_unicode_filename(self):
232232
PYTHON_MEDIA=False,
233233
PUBLIC_DOMAIN='readthedocs.io',
234234
RTD_BUILD_MEDIA_STORAGE='readthedocs.rtd_tests.storage.BuildMediaFileSystemStorageTest',
235+
CACHES={
236+
'default': {
237+
'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
238+
}
239+
}
235240
)
236241
class TestAdditionalDocViews(BaseDocServing):
237242
# Test that robots.txt and sitemap.xml work
@@ -326,7 +331,8 @@ def test_directory_indexes_get_args(self):
326331
self.project.versions.update(active=True, built=True)
327332
# Confirm we've serving from storage for the `index-exists/index.html` file
328333
response = self.client.get(
329-
reverse('proxito_404_handler', kwargs={'proxito_path': '/en/latest/index-exists?foo=bar'}),
334+
reverse('proxito_404_handler', kwargs={
335+
'proxito_path': '/en/latest/index-exists?foo=bar'}),
330336
HTTP_HOST='project.readthedocs.io',
331337
)
332338
self.assertEqual(

0 commit comments

Comments
 (0)