test_test_pages_defaults_to_linked_and_refuses_an_unknown_value¶
Tests › tests/test_wiki_config.py
What this test is for
Why it exists
`wiki.test_pages`: linked (default) | all | none; anything else named.
Given
(tmp_path / ".clew.yaml").write_text("wiki:\n title: T\n")
When
load_wiki_config(tmp_path, None)(tmp_path / ".clew.yaml").write_text("wiki:\n test_pages: some\n")config, problems = load_wiki_config(tmp_path, None)
Then
- ✓ load_wiki_config(tmp_path, None)[0].test_pages equals "linked"
- ✓ config.test_pages equals "linked"
- ✓ any("wiki.test_pages" in p for p in problems) 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_config.py:1 · its file's page
What it checks (2)
assert load_wiki_config(tmp_path, None)[0].test_pages == "linked"observesload_wiki_configassert config.test_pages == "linked" and any("wiki.test_pages" in p for p in problems)not attributed
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.
Also reaches 2 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-GUARD-012 measured
- REQ-DDB-WIKI-054 inferred