From b1531e41e15f10fb27424b8feca759a393ba543b Mon Sep 17 00:00:00 2001 From: Marco Morath Date: Wed, 25 Nov 2026 22:05:37 +0100 Subject: [PATCH] fix:pytest --- pyproject.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 9b9a240..bcf7503 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,6 +33,9 @@ ignore_missing_imports = true [tool.pytest.ini_options] testpaths = ["tests"] +# Projektverzeichnis in den Suchpfad, damit "import surveybox" auch mit dem +# Befehl "pytest" (ohne "python -m") funktioniert, etwa in der CI +pythonpath = ["."] markers = [ "db: braucht eine PostgreSQL-Testdatenbank (SURVEYBOX_TEST_DB=1)", ]