test_components_are_declared_in_the_wiki_section¶
Tests › tests/test_wiki_map.py
What this test is for
Why it exists
`wiki.components`: name → globs, order kept; a malformed entry is a problem.
Verifies REQ-DDB-WIKI-021 REQ-DDB-WIKI-023
Given
(tmp_path / ".clew.yaml").write_text( "wiki:\n components:\n Query layer: [clew/query/*]\n Server: [clew/mcp_server/*]\n" )
When
config, problems = load_wiki_config(tmp_path)(tmp_path / ".clew.yaml").write_text("wiki:\n components: [a, b]\n")load_wiki_config(tmp_path)
Then
- ✓ problems is false
- ✓ config.components equals ( ("Query layer", ("clew/query/*",)), ("Server", ("clew/mcp_server/*",)), )
- ✓ load_wiki_config(tmp_path)[1] holds
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 · 37 of 400 steps
… 6 steps between
… 343 later steps
tests/test_wiki_map.py:84 · its file's page
What it checks (3)
assert not problemsnot attributedassert config.components == ( ("Query layer", ("clew/query/*",)), ("Server", ("clew/mcp_server/*",)), )not attributedassert load_wiki_config(tmp_path)[1]observesload_wiki_config
Where the product reaches it
build_wiki→load_wiki_config(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 (2)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-WIKI-021 | catalog | unknown |
| REQ-DDB-WIKI-023 | catalog | unknown |
Also reaches 2 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-GUARD-012 measured
- REQ-DDB-WIKI-054 inferred