kopia lustrzana https://gitlab.com/marnanel/chapeau
Removed now we're not just a library
rodzic
625caf2bb4
commit
2d7411e574
|
@ -1,76 +0,0 @@
|
|||
from django.urls import path, include
|
||||
|
||||
import djcelery
|
||||
djcelery.setup_loader()
|
||||
|
||||
KEPI = {
|
||||
'ACTIVITY_URL_FORMAT': 'https://altair.example.com/%s',
|
||||
'LOCAL_OBJECT_HOSTNAME': 'example.com',
|
||||
'FOLLOWERS_PATH': '/user/%(username)s/followers',
|
||||
'FOLLOWING_PATH': '/user/%(username)s/followers',
|
||||
'INBOX_PATH': '/user/%(username)s/inbox',
|
||||
'OUTBOX_PATH': '/user/%(username)s/outbox',
|
||||
}
|
||||
|
||||
INSTALLED_APPS = (
|
||||
|
||||
'django.contrib.auth',
|
||||
'django.contrib.contenttypes',
|
||||
'django.contrib.sessions',
|
||||
'django.contrib.messages',
|
||||
'django.contrib.staticfiles',
|
||||
|
||||
'djcelery',
|
||||
'django_celery_results',
|
||||
|
||||
'django_kepi',
|
||||
'polymorphic',
|
||||
|
||||
)
|
||||
|
||||
DATABASES = {
|
||||
'default': {
|
||||
'ENGINE': 'django.db.backends.sqlite3',
|
||||
'NAME': 'kepi_test.sqlite3', # ':memory:',
|
||||
}
|
||||
}
|
||||
|
||||
SECRET_KEY = "secret_key_for_testing"
|
||||
|
||||
ALLOWED_HOSTS = [
|
||||
'altair.example.com',
|
||||
'sirius.example.com',
|
||||
]
|
||||
|
||||
ROOT_URLCONF = 'test_urls'
|
||||
|
||||
CELERY = {
|
||||
'task_ignore_result': True,
|
||||
}
|
||||
|
||||
LOGGING = {
|
||||
|
||||
'version': 1,
|
||||
'disable_existing_loggers': False,
|
||||
'filters': {
|
||||
'require_debug_true': {
|
||||
'()': 'django.utils.log.RequireDebugTrue',
|
||||
},
|
||||
},
|
||||
'handlers': {
|
||||
'console': {
|
||||
'level': 'DEBUG',
|
||||
'filters': ['require_debug_true'],
|
||||
'class': 'logging.StreamHandler',
|
||||
},
|
||||
},
|
||||
'loggers': {
|
||||
'django_kepi': {
|
||||
'handlers': ['console'],
|
||||
'level': 'DEBUG',
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
TEST_RUNNER = 'djcelery.contrib.test_runner.CeleryTestSuiteRunner'
|
||||
|
Ładowanie…
Reference in New Issue