diff --git a/pytests.sh b/pytests.sh index 30bddb5..8d2e42e 100755 --- a/pytests.sh +++ b/pytests.sh @@ -2,4 +2,4 @@ set -eou pipefail -poetry run pytest -q tests -vvv --cov=enroll --cov-report=term-missing +poetry run python -m pytest -q tests -vvv --cov=enroll --cov-report=term-missing diff --git a/tests.sh b/tests.sh index 4d4a410..af27e9b 100755 --- a/tests.sh +++ b/tests.sh @@ -330,7 +330,7 @@ ensure_salt() { run_pytests() { section "Python unit tests" cd "${PROJECT_ROOT}" - run poetry run pytest -vvvv --cov=enroll --cov-report=term-missing --disable-warnings + run poetry run python -m pytest -vvvv --cov=enroll --cov-report=term-missing --disable-warnings } prepare_harvest_fixture() {