From 566a817365130125c4c5cafbc558d11d9c0124f9 Mon Sep 17 00:00:00 2001 From: willemjan Date: Sat, 25 Jul 2026 21:09:48 +0200 Subject: [PATCH] fix pytest module discovery in CI CI invokes the pytest console script directly (pytest tests/ -v), which unlike `python -m pytest` does not add the repo root to sys.path. That broke imports of the top-level data_processing/nightscout_client modules from the test files. Add pythonpath = ["."] so it works regardless of invocation style. Co-Authored-By: Claude Sonnet 5 --- pyproject.toml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..3c32f93 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,2 @@ +[tool.pytest.ini_options] +pythonpath = ["."]