mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-26 03:21:05 +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: ""
|
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
|
||||||
|
|
|
@ -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": {
|
||||||
|
|
Loading…
Reference in a new issue