test_the_plugin_ships_a_wiki_command_at_its_pinned_release¶
Tests › tests/test_wiki_open.py
What this test is for
Why it exists
THE SAME PIN AS THE MCP SERVER, read from pyproject — a command launching another release than the server would build a site with different code. The plugin's own description names its tools as they are in 2.0.0.
Verifies REQ-DDB-WIKI-037
Given
- —
When
version = require_toml_module().loads((REPO / "pyproject.toml").read_text())["project"][ "version" ]command = (REPO / "commands" / "wiki.md").read_text()manifest = json.loads((REPO / ".claude-plugin" / "plugin.json").read_text())
Then
- ✓ command.startswith("---\n") holds
- ✓ command.split("---")[1] contains "description:"
- ✓ command contains f"clew-trace[wiki]=={version}"
- ✓ command contains "clew wiki open"
- ✓ manifest["description"] contains "three tools"
- ✓ manifest["description"] does not contain "four tools"
What it exercises
The parts of the system's flows this test ran, measured by per-test coverage: lit steps ran in this test, dimmed ones did not, and ▶ marks where the test called in. Each title opens the whole flow with these steps lit.
Build this wiki from the index · 1 of 400 steps
… 96 earlier steps
… 299 later steps
1 more
- `main` (clew/guard/main.py) · 1 of 357 steps
tests/test_wiki_open.py:86 · its file's page
What it checks (3)
assert command.startswith("---\n") and "description:" in command.split("---")[1]not attributedassert f"clew-trace[wiki]=={version}" in command and "clew wiki open" in commandobservesrequire_toml_moduleviaversionassert "three tools" in manifest["description"] and "four tools" not in manifest["description"]not attributed
Where the product reaches it
build_wiki→_build_site→_all_flows→entry_point_flows→_scripts→console_scripts→_read_toml→require_toml_module(flow)
Call flow
What it reaches
Each row runs from this test, through the calls it makes, to the code a requirement names. If that code breaks, the test's checks are what should catch it. Reaching is not proving: a check only proves what it observes. No mutation records were given, so these rows say what the test REACHES.
Requirements it verifies (1)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-WIKI-037 | catalog | unknown |