Dummy cache for tests

This commit is contained in:
Mouse Reeve 2022-01-06 11:40:27 -08:00
parent 86b3789ffe
commit 4d0fa2db4a
2 changed files with 8 additions and 2 deletions

View file

@ -47,7 +47,7 @@ jobs:
CELERY_BROKER: "" CELERY_BROKER: ""
REDIS_BROKER_PORT: 6379 REDIS_BROKER_PORT: 6379
REDIS_BROKER_PASSWORD: beep REDIS_BROKER_PASSWORD: beep
USE_LOCAL_CACHE: true USE_DUMMY_CACHE: true
FLOWER_PORT: 8888 FLOWER_PORT: 8888
EMAIL_HOST: "smtp.mailgun.org" EMAIL_HOST: "smtp.mailgun.org"
EMAIL_PORT: 587 EMAIL_PORT: 587

View file

@ -120,7 +120,13 @@ STREAMS = [
] ]
# Redis cache backend # Redis cache backend
if not env("USE_LOCAL_CACHE", False): if env("USE_DUMMY_CACHE", False):
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
}
}
else:
# pylint: disable=line-too-long # pylint: disable=line-too-long
CACHES = { CACHES = {
"default": { "default": {