cookiecutter-django/{{cookiecutter.project_slug}}/pytest.ini
Dani Hodovic c6bd37adcc
Add default tests.py file pattern to pytest
`./manage.py startapp` generates a tests.py file by default. This is
ignored by pytest unless specified.
2019-09-04 15:59:31 +02:00

7 lines
169 B
INI

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