cookiecutter-django/{{cookiecutter.project_slug}}/pytest.ini
Dani Hodovic f02aa463a7
Always use test settings in pytest
You can alternatively use DJANGO_SETTINGS_MODULE, but this is overridden
by the environment variable of the same name. In order to always run it
with test settings, regardless of the environment variable use --ds.

https://pytest-django.readthedocs.io/en/latest/configuring_django.html
2019-07-09 08:54:31 +08:00

6 lines
135 B
INI

[pytest]
addopts = --ds=config.settings.test
{%- if cookiecutter.js_task_runner != 'None' %}
norecursedirs = node_modules
{%- endif %}