From c4448226c04bf432686ed92acb21660fbd6ea5a9 Mon Sep 17 00:00:00 2001 From: Miguel Jacq Date: Mon, 22 Jun 2026 15:05:48 +1000 Subject: [PATCH] Ensure tests run through the poetry env's pytest --- pytests.sh | 2 +- tests.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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() {