Skip to content

fix: add pythonpath=. to pytest.ini so plain pytest -q works#18

Merged
SolshineCode merged 1 commit into
mainfrom
fix/pytest-pythonpath
May 8, 2026
Merged

fix: add pythonpath=. to pytest.ini so plain pytest -q works#18
SolshineCode merged 1 commit into
mainfrom
fix/pytest-pythonpath

Conversation

@SolshineCode
Copy link
Copy Markdown
Owner

Summary

  • Adds pythonpath = . to pytest.ini so the project root is on sys.path at collection time
  • Previously pytest -q failed with ModuleNotFoundError: No module named 'bridge' / No module named 'tui'; only PYTHONPATH=. python3 -m pytest worked
  • CI was already fine (python -m pytest picks up site-packages); this is a DX fix for local dev

Test plan

  • pytest -q → 120 passed (no errors)
  • python3 -m pytest -q → same 120 passed

Toward kanban

Toward kanban: t_cefabee5 (M1 Vertical Slice) — unblocks consistent local test runs

Caveats

None. pythonpath is a first-class pytest option since pytest 7; requirements.txt already pins pytest>=7.0.

https://claude.ai/code/session_01NpeAv65eF3PeVd91JoTNJs


Generated by Claude Code

Without this, pytest (both uv-installed and pip-installed) couldn't
resolve the `bridge` or `tui` packages because the project root wasn't
on sys.path. The `pythonpath = .` directive (pytest >= 7) adds the root
at collection time, matching what `PYTHONPATH=. python -m pytest` did.

Also installs textual + pytest-asyncio in the uv-managed pytest env so
the local `pytest` binary can import Textual (previously only
`python3 -m pytest` worked because textual was in the system site-packages).

No functional change to tests or application code.

https://claude.ai/code/session_01NpeAv65eF3PeVd91JoTNJs
@gemini-code-assist
Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@SolshineCode SolshineCode merged commit c8d0a96 into main May 8, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants