From 881cf29e21e22b43ae9c355b8a94709aee9101f5 Mon Sep 17 00:00:00 2001 From: Maarten ter Huurne Date: Thu, 16 Mar 2023 22:45:14 +0100 Subject: [PATCH] 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 --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 1774e91..b4e1713 100644 --- a/tox.ini +++ b/tox.ini @@ -30,7 +30,7 @@ passenv = DB_* usedevelop = True commands = - pytest {posargs} + python -m pytest {posargs} [testenv:flake8] basepython =