Use separate AMQP vhost for tests
This commit is contained in:
parent
62d8ed64e2
commit
02768a4b95
1 changed files with 18 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue