Commit e0b36d5
fix(ci): resolve 3 remaining test failures from the wiki autonomy turn
After the v3.17.0 prep the test suite still had three classes of
failure on Linux CI. Each one is a real test/policy mismatch, not a
flake:
# tests_py/handlers/test_seed_project.py (3 tests)
The handler refuses to operate on transient roots
(``pytest-of-`` / ``/private/var/folders/`` / ``/var/folders/`` /
``.claude/worktrees/``) to keep test runs and worktree creation from
polluting the wiki. The test fixture uses ``tmp_path`` which IS a
transient root — so the handler returns ``seeded: False`` before
the codepath under test ever runs.
Added an autouse fixture at the module top that stubs
``is_transient_seed_root`` to return ``False`` for every test in the
module. The tests are about the per-domain purge contract (issue
#16), not the transient-root gate; the stub keeps them focused.
# tests_py/handlers/test_open_visualization.py
# (test_opens_browser_at_legacy_url_when_extras_missing)
The test expected the handler to open a legacy URL when
``_prepare_layout`` returns ``igraph_missing``. That fallback path
no longer exists — the user direction 2026-05-17 was that the graph
build must NEVER block the MCP tool launch OR the interface load,
so ``_prepare_layout`` is no longer called from ``handler()``. The
handler now always opens ``?viz=tilemap``.
Renamed the test to ``test_opens_browser_at_tilemap_url_unconditionally``
and rewrote it to assert the current behaviour: tilemap URL always
opens, regardless of any (irrelevant) layout state. Kept the
docstring explaining the history so the next reader knows why.
# tests_py/core/test_wiki_sync_routing.py
# (test_file_documentation_does_not_route_to_notes)
Same policy clash as the two ``test_wiki_classifier.py`` tests I
fixed in an earlier commit: ``codebase`` / ``code-reference`` tagged
content used to route to ``reference/``; the 2026-05-17 policy
moved those tags into ``_AUDIT_TAGS`` (Gate -1 rejection) so the
wiki layer never re-accumulates per-file extractor dumps. The
autonomous worker now produces curated structural pages instead.
Renamed the test to ``test_file_documentation_is_rejected_from_wiki``
and assert ``build_from_memory`` returns None for this tag set.
Lint + format clean; 18-test subset (the three previously-failing
suites) passes locally on Python 3.10.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent c8d614b commit e0b36d5
3 files changed
Lines changed: 51 additions & 22 deletions
File tree
- tests_py
- core
- handlers
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
176 | 177 | | |
177 | 178 | | |
178 | 179 | | |
| |||
186 | 187 | | |
187 | 188 | | |
188 | 189 | | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
193 | 194 | | |
194 | | - | |
195 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
99 | 106 | | |
100 | 107 | | |
101 | 108 | | |
| |||
104 | 111 | | |
105 | 112 | | |
106 | 113 | | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | 114 | | |
112 | 115 | | |
113 | | - | |
114 | | - | |
| 116 | + | |
| 117 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
20 | 47 | | |
21 | 48 | | |
22 | 49 | | |
| |||
0 commit comments