test_the_palette_takes_success_and_info¶
Tests › tests/test_wiki_theme_tokens.py
What this test is for
Why it exists
Four new words, mapped to CSS tokens, accepted without a problem.
Given
(tmp_path / ".clew.yaml").write_text( "wiki:\n theme:\n palette: {success: '#1a7f37', info: '#0969da'}\n" )
When
config, problems = load_wiki_config(tmp_path)
Then
- ✓ {PALETTE[w] for w in ("success", "success_bg", "info", "info_bg")} equals { "ok", "okbg", "info", "infobg", }
- ✓ problems is false
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_theme_tokens.py:26 · its file's page
What it checks (2)
assert {PALETTE[w] for w in ("success", "success_bg", "info", "info_bg")} == { "ok", "okbg", "info", "infobg", }not attributedassert not problems, problemsnot 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