Use locmem cache in sqlite environments

Otherwise the tests just lock up totally. Should close #162
This commit is contained in:
2020-06-04 23:36:31 +01:00
parent 1239fbf185
commit aedb4c24db

View File

@@ -157,6 +157,11 @@ CACHES = {
'LOCATION': 'cache_table',
}
}
# Tests lock up SQLite otherwise
if DEBUG or CI:
CACHES['default'] = {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'
}
RAVEN_CONFIG = {
'dsn': os.environ.get('RAVEN_DSN'),