ansible/roles/mailman/files/settings_test.py

27 lines
501 B
Python
Raw Normal View History

#-*- 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:',
}
}
2015-09-21 10:57:30 +00:00
# Mailman API credentials for testing Postorius
MAILMAN_API_URL = 'http://localhost:9001'
MAILMAN_USER = 'restadmin'
MAILMAN_PASS = 'restpass'
VCR_RECORD_MODE = 'once'
USE_SSL = False