X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/3596cf9db6eabb5f0aa36afe7919bc40e8ff0b9a..e1e0bdc6aed0ca388dd1c8da7a0721beb0f1a2e4:/src/wolnelektury/settings/test.py?ds=sidebyside diff --git a/src/wolnelektury/settings/test.py b/src/wolnelektury/settings/test.py index 0e10be9fb..42a453e19 100644 --- a/src/wolnelektury/settings/test.py +++ b/src/wolnelektury/settings/test.py @@ -1,5 +1,5 @@ -# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. -# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# This file is part of Wolne Lektury, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Wolne Lektury. See NOTICE for more information. # from wolnelektury.settings import * @@ -10,3 +10,11 @@ MEDIA_URL = '/media/' SEARCH_CONFIG = 'english' SEARCH_CONFIG_SIMPLE = 'simple' SEARCH_USE_UNACCENT = False + +# Infrastructure: tests don't need Redis or Memcached. +CELERY_BROKER_URL = 'memory://' +CELERY_TASK_ALWAYS_EAGER = True +CACHES = { + 'default': {'BACKEND': 'django.core.cache.backends.dummy.DummyCache'}, + 'template_fragments': {'BACKEND': 'django.core.cache.backends.dummy.DummyCache'}, +}