chapeau/test_settings.py

61 wiersze
1.3 KiB
Python
Czysty Zwykły widok Historia

2018-08-11 16:21:56 +00:00
from django.urls import path, include
2018-09-23 20:59:13 +00:00
import djcelery
djcelery.setup_loader()
2018-08-19 18:02:11 +00:00
KEPI = {
'ACTIVITY_URL_FORMAT': 'https://example.com/activities/%s',
2018-08-19 18:02:11 +00:00
}
INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
2018-09-23 20:59:13 +00:00
'djcelery',
'django_celery_results',
2018-08-11 16:21:56 +00:00
'django_kepi',
2018-08-12 13:06:26 +00:00
'things_for_testing',
2018-08-11 16:21:56 +00:00
)
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
}
}
SECRET_KEY = "secret_key_for_testing"
2018-08-11 16:21:56 +00:00
ROOT_URLCONF = 'test_urls'
2018-09-23 20:59:13 +00:00
#CELERY_ACCEPT_CONTENT = ['json']
2018-10-06 20:40:52 +00:00
if False:
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'handlers': {
'console': {
'level': 'DEBUG',
'class': 'logging.StreamHandler',
},
},
'loggers': {
'django_kepi': {
'handlers': ['console'],
'level': 'DEBUG',
},
},
}
TEST_RUNNER = 'djcelery.contrib.test_runner.CeleryTestSuiteRunner'