Jan Dittberner
ed18c4a6f9
This commit modernizes all requirements to the latest versions, adapts the settings to Django 1.9 and synchronizes the settings layout with gva.
37 lines
902 B
Python
37 lines
902 B
Python
# pymode:lint_ignore=W0401
|
|
"""
|
|
Test settings based on :py:mod:`gvaldap.settings.base`.
|
|
|
|
"""
|
|
from __future__ import absolute_import
|
|
|
|
# use import * to import all settings from base
|
|
from .base import * # NOQA
|
|
|
|
PASSWORD_HASHERS = (
|
|
'django.contrib.auth.hashers.MD5PasswordHasher',
|
|
)
|
|
########## IN-MEMORY TEST DATABASE
|
|
DATABASES = {
|
|
"default": {
|
|
"ENGINE": "django.db.backends.sqlite3",
|
|
"NAME": ":memory:",
|
|
"USER": "",
|
|
"PASSWORD": "",
|
|
"HOST": "",
|
|
"PORT": "",
|
|
},
|
|
}
|
|
LOGGING['handlers'].update({
|
|
'console': {
|
|
'level': 'ERROR',
|
|
'class': 'logging.StreamHandler',
|
|
'formatter': 'simple',
|
|
}
|
|
})
|
|
LOGGING['loggers'].update(dict(
|
|
[(key, {'handlers': ['console'], 'level': 'ERROR', 'propagate': True, })
|
|
for key in ['ldapentities', 'ldaptasks']]))
|
|
BROKER_URL = BROKER_URL + '_test'
|
|
CELERY_RESULT_PERSISTENT = False
|