mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-22 17:41:08 +00:00
Dummy cache for tests
This commit is contained in:
parent
86b3789ffe
commit
4d0fa2db4a
2 changed files with 8 additions and 2 deletions
2
.github/workflows/django-tests.yml
vendored
2
.github/workflows/django-tests.yml
vendored
|
@ -47,7 +47,7 @@ jobs:
|
|||
CELERY_BROKER: ""
|
||||
REDIS_BROKER_PORT: 6379
|
||||
REDIS_BROKER_PASSWORD: beep
|
||||
USE_LOCAL_CACHE: true
|
||||
USE_DUMMY_CACHE: true
|
||||
FLOWER_PORT: 8888
|
||||
EMAIL_HOST: "smtp.mailgun.org"
|
||||
EMAIL_PORT: 587
|
||||
|
|
|
@ -120,7 +120,13 @@ STREAMS = [
|
|||
]
|
||||
|
||||
# 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
|
||||
CACHES = {
|
||||
"default": {
|
||||
|
|
Loading…
Reference in a new issue