From aedb4c24db611e81ce98f83ea8d17276f5c90d87 Mon Sep 17 00:00:00 2001 From: Arona Date: Thu, 4 Jun 2020 23:36:31 +0100 Subject: [PATCH] Use locmem cache in sqlite environments Otherwise the tests just lock up totally. Should close #162 --- PyRIGS/settings.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/PyRIGS/settings.py b/PyRIGS/settings.py index 5d2aa056..09619858 100644 --- a/PyRIGS/settings.py +++ b/PyRIGS/settings.py @@ -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'),