Use pytest-env plugin to manage test settings instead of settings file
This commit is contained in:
parent
f9c649472a
commit
22370d1b2c
4 changed files with 10 additions and 32 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue