2018-10-29 12:44:34 +03:00
|
|
|
from treeherder.config.settings import * # noqa: F403
|
2015-09-15 19:13:08 +03:00
|
|
|
|
2018-10-29 12:44:34 +03:00
|
|
|
DATABASES["default"]["TEST"] = {"NAME": "test_treeherder"} # noqa: F405
|
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
|
2019-02-28 22:52:22 +03:00
|
|
|
CELERY_TASK_ALWAYS_EAGER = True
|
|
|
|
CELERY_TASK_EAGER_PROPAGATES = True
|
2015-09-15 19:13:08 +03:00
|
|
|
|
2019-02-22 09:48:12 +03:00
|
|
|
# Make WhiteNoise look for static assets inside registered Django apps, rather
|
|
|
|
# than only inside the generated staticfiles directory. This means we don't
|
|
|
|
# have to run collectstatic for `test_content_security_policy_header` to pass.
|
|
|
|
WHITENOISE_USE_FINDERS = True
|
|
|
|
|
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
|
|
|
)
|
2020-03-17 00:25:11 +03:00
|
|
|
|
|
|
|
# For Push Health Usage dashboard
|
|
|
|
NEW_RELIC_INSIGHTS_API_KEY = "123"
|