2015-09-15 19:13:08 +03:00
|
|
|
from treeherder.config.settings import *
|
|
|
|
|
|
|
|
DATABASES["default"]["TEST"] = {"NAME": "test_treeherder"}
|
2018-01-11 20:44:13 +03:00
|
|
|
KEY_PREFIX = 'test'
|
2017-01-06 22:32:06 +03:00
|
|
|
|
|
|
|
TREEHERDER_TEST_REPOSITORY_NAME = 'test_treeherder_jobs'
|
2015-09-15 19:13:08 +03:00
|
|
|
|
|
|
|
# this makes celery calls synchronous, useful for unit testing
|
2017-02-01 19:28:55 +03:00
|
|
|
CELERY_ALWAYS_EAGER = True
|
|
|
|
CELERY_EAGER_PROPAGATES_EXCEPTIONS = True
|
2015-09-15 19:13:08 +03:00
|
|
|
|
2015-12-31 03:07:14 +03:00
|
|
|
# Set a fake api key for testing bug filing
|
2017-04-10 23:18:49 +03:00
|
|
|
BUGFILER_API_KEY = "12345helloworld"
|
|
|
|
BUGFILER_API_URL = "https://thisisnotbugzilla.org"
|
2016-06-29 13:25:38 +03:00
|
|
|
|
2016-11-18 21:54:48 +03:00
|
|
|
# some of the auth/login tests can be faster if we don't require "django_db"
|
2018-02-07 20:59:30 +03:00
|
|
|
# access. But if we use the defaults in config.settings, we also get the
|
2016-11-18 21:54:48 +03:00
|
|
|
# ``ModelBackend``, which will try to access the DB. This ensures we don't
|
|
|
|
# do that, since we don't have any tests that use the ``ModelBackend``.
|
|
|
|
AUTHENTICATION_BACKENDS = (
|
2018-02-07 20:59:30 +03:00
|
|
|
'treeherder.auth.backends.AuthBackend',
|
2016-11-18 21:54:48 +03:00
|
|
|
)
|