Mailman: add the conffile for unit tests

This commit is contained in:
Aurélien Bompard 2015-04-29 20:43:07 +00:00
parent 0b47bc5948
commit b9a2e69201
2 changed files with 25 additions and 0 deletions

View file

@ -0,0 +1,18 @@
#-*- coding: utf-8 -*-
"""
Copy of the Django settings file, but with the database set for unit tests.
"""
from settings import *
try:
from settings_local import *
except ImportError:
pass
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
}
}

View file

@ -151,6 +151,13 @@
tags: tags:
- config - config
- 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
tags:
- config
- name: install the hyperkitty urls file - name: install the hyperkitty urls file
copy: src=urls.py copy: src=urls.py
dest="{{ mailman_webui_confdir }}/urls.py" dest="{{ mailman_webui_confdir }}/urls.py"