Use pytest-env plugin to manage test settings instead of settings file

This commit is contained in:
Eliot Berriot 2018-03-31 14:45:11 +02:00
commit 22370d1b2c
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
4 changed files with 10 additions and 32 deletions

View file

@ -7,6 +7,12 @@ max-line-length = 120
exclude=.tox,.git,*/migrations/*,*/static/CACHE/*,docs,node_modules
[tool:pytest]
DJANGO_SETTINGS_MODULE=config.settings.test
python_files = tests.py test_*.py *_tests.py
testpaths = tests
env =
SECRET_KEY=test
DJANGO_EMAIL_BACKEND=django.core.mail.backends.console.EmailBackend
CELERY_BROKER_URL=memory://
CELERY_TASK_ALWAYS_EAGER=True
CACHEOPS_ENABLED=False
FEDERATION_HOSTNAME=test.federation