Use separate AMQP vhost for tests

This commit is contained in:
Jan Dittberner 2016-01-31 16:31:13 +01:00
parent 62d8ed64e2
commit 02768a4b95

View file

@ -5,7 +5,8 @@ Test settings based on :py:mod:`gvaldap.settings.base`.
"""
from __future__ import absolute_import
from .base import *
# use import * to import all settings from base
from .base import * # NOQA
########## IN-MEMORY TEST DATABASE
DATABASES = {
@ -18,3 +19,19 @@ DATABASES = {
"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 [
'dashboard', 'domains', 'fileservertasks', 'gvacommon',
'gvawebcore', 'hostingpackages', 'ldaptasks', 'managemails',
'mysqltasks', 'osusers', 'pgsqltasks', 'taskresults',
'userdbs', 'websites']]))
BROKER_URL = BROKER_URL + '_test'
CELERY_RESULT_PERSISTENT = False