Run pytest with current directory in the search path

Without this, `pytest-django` cannot find its settings module.

https://docs.pytest.org/en/6.2.x/usage.html#calling-pytest-through-python-m-pytest
This commit is contained in:
Maarten ter Huurne 2023-03-16 22:45:14 +01:00
parent cced1c7aea
commit 881cf29e21

View file

@ -30,7 +30,7 @@ passenv =
DB_*
usedevelop = True
commands =
pytest {posargs}
python -m pytest {posargs}
[testenv:flake8]
basepython =