Mailman: update the django test settings

This commit is contained in:
Aurélien Bompard 2016-01-21 11:41:23 +00:00
parent 5696191b22
commit dcf17a15a3
2 changed files with 22 additions and 1 deletions

View file

@ -10,6 +10,8 @@ try:
except ImportError:
pass
TESTING = True
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
@ -24,3 +26,22 @@ MAILMAN_REST_API_PASS = 'restpass'
VCR_RECORD_MODE = 'once'
USE_SSL = False
COMPRESS_ENABLED = False
# Empty the precompilers mapping for testing: django-compressor will run them
# even if compress_enabled is false, no idea why
COMPRESS_PRECOMPILERS = ()
#
# Full-text search engine
#
HAYSTACK_CONNECTIONS = {
'default': {
'ENGINE': 'haystack.backends.whoosh_backend.WhooshEngine',
'PATH': ':memory:',
'STORAGE': 'ram',
},
}
HAYSTACK_SIGNAL_PROCESSOR = 'haystack.signals.RealtimeSignalProcessor'
LOGGING = {}

View file

@ -257,7 +257,7 @@
- name: install the hyperkitty settings test file
copy: src=settings_test.py
dest="{{ mailman_webui_confdir }}/settings_test.py"
owner=root group=root mode=0600
owner=root group=root mode=0644
tags:
- config
- mailman