зеркало из https://github.com/mozilla/kitsune.git
Delete settings_test.py and allow configuration of PIPELINE_ENABLED.
This commit is contained in:
Родитель
a99ce13565
Коммит
33c2849ef5
|
@ -1,8 +1,11 @@
|
|||
DEBUG=False
|
||||
# Some cron jobs are skipped on stage.
|
||||
STAGE=False
|
||||
SESSION_COOKIE_SECURE=False
|
||||
CELERY_ALWAYS_EAGER=True
|
||||
# Tells django-axes we aren't behind a reverse proxy.
|
||||
AXES_BEHIND_REVERSE_PROXY=False
|
||||
# Make sure pipeline is enabled so it does not collectstatic on every test
|
||||
PIPELINE_ENABLED=True
|
||||
ES_LIVE_INDEXING=False
|
||||
ALLOWED_HOSTS=*
|
||||
|
|
|
@ -1021,3 +1021,5 @@ RAVEN_CONFIG = {
|
|||
'environment': config('SENTRY_ENVIRONMENT', default=''),
|
||||
}
|
||||
}
|
||||
|
||||
PIPELINE_ENABLED = config('PIPELINE_ENABLED', default=False, cast=bool)
|
||||
|
|
|
@ -1,39 +0,0 @@
|
|||
# The test system uses this to override settings in settings.py and
|
||||
# settings_local.py with settings appropriate for testing.
|
||||
import os
|
||||
|
||||
ES_LIVE_INDEXING = False
|
||||
ES_INDEX_PREFIX = 'sumotest'
|
||||
ES_INDEXES = {
|
||||
'default': 'test-default',
|
||||
'non-critical': 'test-non-critical',
|
||||
'metrics': 'test-metrics',
|
||||
}
|
||||
ES_WRITE_INDEXES = ES_INDEXES
|
||||
|
||||
# Make sure Celery is EAGER.
|
||||
CELERY_ALWAYS_EAGER = True
|
||||
|
||||
# Make sure we use port 6383 db 2 redis for tests. That's db 2 of the
|
||||
# redis test config. That shouldn't collide with anything else.
|
||||
REDIS_BACKENDS = {
|
||||
'default': 'redis://localhost:6383?socket_timeout=0.5&db=2',
|
||||
'karma': 'redis://localhost:6383?socket_timeout=0.5&db=2',
|
||||
'helpfulvotes': 'redis://localhost:6383?socket_timeout=0.5&db=2',
|
||||
}
|
||||
|
||||
# Some cron jobs are skipped on stage.
|
||||
STAGE = False
|
||||
|
||||
SESSION_COOKIE_SECURE = False
|
||||
|
||||
# The way we do live server test cases is greedy with ports. This gives
|
||||
# it more ports, but won't clobber settings from the environment.
|
||||
if 'DJANGO_LIVE_TEST_SERVER_ADDRESS' not in os.environ:
|
||||
os.environ['DJANGO_LIVE_TEST_SERVER_ADDRESS'] = 'localhost:8081-8090'
|
||||
|
||||
# Tells django-axes we aren't behind a reverse proxy.
|
||||
AXES_BEHIND_REVERSE_PROXY = False
|
||||
|
||||
# Make sure pipeline is enabled so it does not collectstatic on every test
|
||||
PIPELINE_ENABLED = True
|
Загрузка…
Ссылка в новой задаче