Mailman: add the conffile for unit tests
This commit is contained in:
parent
0b47bc5948
commit
b9a2e69201
2 changed files with 25 additions and 0 deletions
18
roles/mailman/files/settings_test.py
Normal file
18
roles/mailman/files/settings_test.py
Normal 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:',
|
||||||
|
}
|
||||||
|
}
|
|
@ -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"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue