File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 8
8
from django import forms
9
9
from django .conf import settings
10
10
from django .core .mail import EmailMessage
11
- from django .test import TestCase
11
+ from django .test import TestCase , override_settings
12
12
from django .utils import timezone
13
13
14
14
from ..models import (
@@ -327,6 +327,12 @@ def test_singleton_object_cannot_be_deleted(self):
327
327
328
328
self .assertIn ("Singleton object cannot be delete. Try updating it instead." , str (context .exception ))
329
329
330
+ @override_settings (CACHES = {
331
+ "default" : {
332
+ "BACKEND" : "django.core.cache.backends.locmem.LocMemCache" ,
333
+ "LOCATION" : "pythondotorg-local-cache" ,
334
+ }
335
+ })
330
336
def test_current_year_is_cached (self ):
331
337
# cleans cached from previous test runs
332
338
cache .clear ()
You can’t perform that action at this time.
0 commit comments