mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 05:22:16 +00:00
Use locmem cache in sqlite environments
Otherwise the tests just lock up totally. Should close #162
This commit is contained in:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user