Repository navigation
Commit e55eb02
fix(tests): skip the PG-driver doctor check without psycopg installed
CI caught this on Windows once PR #640 added tests_py/test_doctor.py to
the curated Windows CI test list: test_pg_driver_passes_in_dev_env
asserts _pg_driver().ok is True on the bare assumption "dev env has
postgresql extras installed", which doesn't hold on the Windows job's
requirements/ci-sqlite-min.txt (deliberately psycopg-free) -- the same
assumption is false even in this repo's own local dev venv (psycopg is
not importable here either), so this was never actually a dev-only
edge case, just never previously exercised. mcp_server/doctor.py's own
SQLITE_CHECKS explicitly excludes _pg_driver already, confirming it is
not a SQLite-relevant check.
Marked with tests_py/conftest.py's existing requires_psycopg marker,
the same pattern already used by several sibling test files for
exactly this class of dependency.
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MyRfKj1vpBm2yx3sXCN8ik1 parent e4b5ca0 commit e55eb02
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| |||
0 commit comments