-
Notifications
You must be signed in to change notification settings - Fork 1
/
testcelery_settings.py
30 lines (25 loc) · 1.45 KB
/
testcelery_settings.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
from settings import *
from celeryconfig import *
#==============================================================================#
# This file is included in version control. Do not add sensitive information #
# here. #
#==============================================================================#
if globals().get('CELERYMANAGEMENT_USING_HUDSON'):
TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
INSTALLED_APPS = INSTALLED_APPS + ('django_nose',)
# Disable South's migrations when running tests
SOUTH_TESTS_MIGRATE = False
# Make sure CELERY_IMPORTS is defined. Then add test tasks module to it.
CELERY_IMPORTS = globals().get('CELERY_IMPORTS',())
##CELERY_IMPORTS = CELERY_IMPORTS + ('celerymanagementapp.testutil.tasks',)
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'celerymanagement_test.db', # Or path to database file if using sqlite3.
'TEST_NAME': 'celerymanagement_test.db',
'USER': '', # Not used with sqlite3.
'PASSWORD': '', # Not used with sqlite3.
'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
'PORT': '', # Set to empty string for default. Not used with sqlite3.
}
}