test_the_plugin_ships_a_wiki_command_at_its_pinned_release

Tests › tests/test_wiki_open.py

passed Passed in the packaged run.

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

  1. —
→

When

  1. version = require_toml_module().loads((REPO / "pyproject.toml").read_text())["project"][ "version" ]
  2. command = (REPO / "commands" / "wiki.md").read_text()
  3. manifest = json.loads((REPO / ".claude-plugin" / "plugin.json").read_text())
→

Then

  1. ✓ command.startswith("---\n") holds
  2. ✓ command.split("---")[1] contains "description:"
  3. ✓ command contains f"clew-trace[wiki]=={version}"
  4. ✓ command contains "clew wiki open"
  5. ✓ manifest["description"] contains "three tools"
  6. ✓ 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

callercallercallercallerother filesother filesother filesother filesloop (line 223)looploop (line 224)looploop (line 74)looploop (line 78)loopbuild_wiki97–98. console_scripts → _read_toml97_read_toml +1 more99. require_toml_module → toml_module99toml_module▶ test enters100. console_scripts → _nested100_nested101. _scripts → _defined101_defined

… 299 later steps

1 more

tests/test_wiki_open.py:86 · its file's page

What it checks (3)

  1. assert command.startswith("---\n") and "description:" in command.split("---")[1] not attributed
  2. assert f"clew-trace[wiki]=={version}" in command and "clew wiki open" in command observes require_toml_module via version
  3. assert "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

test_the_plugin_ships_a_wiki_command_at_its_pinned_release→require_toml_module

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)

requirementlinked byimplementers exercised
REQ-DDB-WIKI-037catalogunknown