From 9bbcc0952b996f8323b8b6e1d631aacbdaa8a1a7 Mon Sep 17 00:00:00 2001 From: Lars Date: Tue, 7 Oct 2025 13:27:51 +0200 Subject: [PATCH] =?UTF-8?q?tests/conftest.py=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/conftest.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tests/conftest.py diff --git a/tests/conftest.py b/tests/conftest.py new file mode 100644 index 0000000..4be9b63 --- /dev/null +++ b/tests/conftest.py @@ -0,0 +1,6 @@ +# Sorgt dafür, dass 'app' als Paket importierbar ist, +# wenn pytest aus dem Repo-Root oder aus 'tests/' gestartet wird. +import os, sys +ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), "..")) +if ROOT not in sys.path: + sys.path.insert(0, ROOT)