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 = {
|
2018-09-10 12:56:31 +00:00
|
|
|
'ACTIVITY_URL_FORMAT': 'https://example.com/activities/%s',
|
2019-04-16 00:06:06 +00:00
|
|
|
'LOCAL_OBJECT_HOSTNAME': 'example.com',
|
2018-08-19 18:02:11 +00:00
|
|
|
}
|
|
|
|
|
2018-08-07 15:29:26 +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
|
|
|
|
2018-08-07 15:29:26 +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
|
|
|
|
2019-04-07 20:39:11 +00:00
|
|
|
ALLOWED_HOSTS = [
|
|
|
|
'altair.example.com',
|
|
|
|
'sirius.example.com',
|
|
|
|
]
|
|
|
|
|
2018-08-11 16:21:56 +00:00
|
|
|
ROOT_URLCONF = 'test_urls'
|
2018-09-23 20:59:13 +00:00
|
|
|
|
2018-10-06 21:11:38 +00:00
|
|
|
CELERY = {
|
|
|
|
'task_ignore_result': True,
|
|
|
|
}
|
|
|
|
|
2018-10-12 15:28:20 +00:00
|
|
|
LOGGING = {
|
2018-09-27 16:34:59 +00:00
|
|
|
|
2018-10-12 15:28:20 +00:00
|
|
|
'version': 1,
|
|
|
|
'disable_existing_loggers': False,
|
|
|
|
'filters': {
|
|
|
|
'require_debug_true': {
|
|
|
|
'()': 'django.utils.log.RequireDebugTrue',
|
2018-09-27 16:34:59 +00:00
|
|
|
},
|
2018-10-12 15:28:20 +00:00
|
|
|
},
|
|
|
|
'handlers': {
|
|
|
|
'console': {
|
|
|
|
'level': 'DEBUG',
|
|
|
|
'filters': ['require_debug_true'],
|
|
|
|
'class': 'logging.StreamHandler',
|
2018-09-27 16:34:59 +00:00
|
|
|
},
|
2018-10-12 15:28:20 +00:00
|
|
|
},
|
|
|
|
'loggers': {
|
|
|
|
'django_kepi': {
|
|
|
|
'handlers': ['console'],
|
|
|
|
'level': 'DEBUG',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
2018-09-27 16:52:42 +00:00
|
|
|
|
|
|
|
TEST_RUNNER = 'djcelery.contrib.test_runner.CeleryTestSuiteRunner'
|
|
|
|
|