From 02768a4b95d52d6235773f2e40655a747fbd011f Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Sun, 31 Jan 2016 16:31:13 +0100 Subject: [PATCH] Use separate AMQP vhost for tests --- gvaldap/gvaldap/settings/test.py | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/gvaldap/gvaldap/settings/test.py b/gvaldap/gvaldap/settings/test.py index c39ee49..dc5d82b 100644 --- a/gvaldap/gvaldap/settings/test.py +++ b/gvaldap/gvaldap/settings/test.py @@ -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