test_check_refuses_an_unknown_palette_token¶
Tests › tests/test_wiki_site.py
What this test is for
Why it exists
A misspelled token would otherwise be a silent no-op.
Verifies REQ-DDB-WIKI-011 REQ-DDB-WIKI-012 REQ-DDB-WIKI-013 REQ-DDB-WIKI-014 REQ-DDB-WIKI-015 REQ-DDB-WIKI-018 REQ-DDB-WIKI-020 REQ-DDB-WIKI-021 REQ-DDB-WIKI-022 REQ-DDB-WIKI-023 REQ-DDB-WIKI-025 REQ-DDB-WIKI-031 REQ-DDB-WIKI-044 REQ-DDB-WIKI-050 REQ-DDB-WIKI-052
Given
cfg = tmp_path / "w.yaml"cfg.write_text( "wiki:\n docs: [README.md]\n theme:\n palette: {acent: '#000'}\n css: nope.css\n" )
When
problems = "\n".join(check_wiki(repo[0], repo[1], cfg))
Then
- ✓ problems contains "'acent'"
- ✓ problems contains "'nope.css' does not exist"
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 · 38 of 400 steps
… 6 steps between
… 343 later steps
tests/test_wiki_site.py:278 · its file's page
What it checks (1)
assert "'acent'" in problems and "'nope.css' does not exist" in problemsobservescheck_wikiviaproblems
Where the product reaches it
No product flow reaches this code: no product entry point's flow calls any of the functions this test calls.
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.
and 6 more requirement paths, listed below.
Requirements it verifies (15)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-WIKI-011 | catalog | unknown |
| REQ-DDB-WIKI-012 | catalog | unknown |
| REQ-DDB-WIKI-013 | catalog | unknown |
| REQ-DDB-WIKI-014 | catalog | unknown |
| REQ-DDB-WIKI-015 | catalog | 1 of 3: declared_catalog |
| REQ-DDB-WIKI-018 | catalog | unknown |
| REQ-DDB-WIKI-020 | catalog | unknown |
| REQ-DDB-WIKI-021 | catalog | unknown |
| REQ-DDB-WIKI-022 | catalog | unknown |
| REQ-DDB-WIKI-023 | catalog | unknown |
| REQ-DDB-WIKI-025 | catalog | unknown |
| REQ-DDB-WIKI-031 | catalog | unknown |
| REQ-DDB-WIKI-044 | catalog | unknown |
| REQ-DDB-WIKI-050 | catalog | unknown |
| REQ-DDB-WIKI-052 | catalog | unknown |
Also reaches 17 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-CONFIG-001 inferred
- REQ-DDB-CONFIG-003 inferred
- REQ-DDB-GUARD-012 measured
- REQ-DDB-GUARD-024 inferred
- REQ-DDB-GUARD-027 inferred
- REQ-DDB-QUERY-001 measured
- REQ-DDB-QUERY-003 measured
- REQ-DDB-QUERY-010 inferred
- REQ-DDB-SCHEMA-006 inferred
- REQ-DDB-SCHEMA-015 inferred
- REQ-DDB-WIKI-003 measured
- REQ-DDB-WIKI-004 measured
- REQ-DDB-WIKI-005 measured
- REQ-DDB-WIKI-006 inferred
- REQ-DDB-WIKI-010 inferred
- REQ-DDB-WIKI-040 inferred
- REQ-DDB-WIKI-054 inferred