Fix pytest module discovery in CI #3

Merged
willemjan merged 1 commits from dev into main 2026-07-25 19:12:20 +00:00
Owner

pytest tests/ -v faalde in CI door ontbrekende rootdir op sys.path; pyproject.toml met pythonpath fixt dit.

pytest tests/ -v faalde in CI door ontbrekende rootdir op sys.path; pyproject.toml met pythonpath fixt dit.
willemjan added 1 commit 2026-07-25 19:11:17 +00:00
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 <[email protected]>
willemjan merged commit 274d27c5bc into main 2026-07-25 19:12:20 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: willemjan/glucose-dashboard#3