From 36db09fefc609ba2a03c0f91204675b57c7ea3e7 Mon Sep 17 00:00:00 2001 From: alpha912 Date: Sun, 7 Sep 2025 22:54:03 +0000 Subject: [PATCH] test: ensure package root on sys.path via conftest for local runs --- python/tests/conftest.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 python/tests/conftest.py diff --git a/python/tests/conftest.py b/python/tests/conftest.py new file mode 100644 index 0000000..fb20192 --- /dev/null +++ b/python/tests/conftest.py @@ -0,0 +1,8 @@ +import sys +from pathlib import Path + +# Ensure package root is importable +ROOT = Path(__file__).resolve().parents[1] +if str(ROOT) not in sys.path: + sys.path.insert(0, str(ROOT)) +