testing: Use LocMemCache for backend testing.

LocMemCache is not compatible with frontend tests so we only use it
for backend tests. To do that we change the cache backend within
`not CASPER_TESTS` if block.
This commit is contained in:
Umair Khan
2017-02-13 12:31:12 +05:00
committed by Tim Abbott
parent 5440bc81b2
commit c49789778c

View File

@@ -96,6 +96,12 @@ CACHES['database'] = {
}
}
# Use local memory cache for backend tests.
if not CASPER_TESTS:
CACHES['default'] = {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'
}
# Enable file:/// hyperlink support by default in tests
ENABLE_FILE_LINKS = True