File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
readthedocs/proxito/tests Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 5
5
6
6
import django_dynamic_fixture as fixture
7
7
from django .conf import settings
8
+ from django .core .cache import cache
8
9
from django .http import HttpResponse
9
10
from django .test .utils import override_settings
10
11
from django .urls import reverse
@@ -232,15 +233,15 @@ def test_project_nginx_serving_unicode_filename(self):
232
233
PYTHON_MEDIA = False ,
233
234
PUBLIC_DOMAIN = 'readthedocs.io' ,
234
235
RTD_BUILD_MEDIA_STORAGE = 'readthedocs.rtd_tests.storage.BuildMediaFileSystemStorageTest' ,
235
- CACHES = {
236
- 'default' : {
237
- 'BACKEND' : 'django.core.cache.backends.dummy.DummyCache' ,
238
- }
239
- }
240
236
)
241
237
class TestAdditionalDocViews (BaseDocServing ):
242
238
# Test that robots.txt and sitemap.xml work
243
239
240
+ def tearDown (self ):
241
+ super ().tearDown ()
242
+ # Cleanup cache to avoid throttling on tests
243
+ cache .clear ()
244
+
244
245
@mock .patch ('readthedocs.proxito.views.serve.get_storage_class' )
245
246
def test_default_robots_txt (self , storage_mock ):
246
247
storage_mock ()().exists .return_value = False
You can’t perform that action at this time.
0 commit comments