test_the_overlay_merges_over_the_repositorys_wiki_section¶
Tests › tests/test_wiki_overlay.py
What this test is for
Why it exists
Mappings merge key by key; the repository's other sections are untouched.
Given
repo = _repo(tmp_path)overlay = tmp_path / "org.yaml"overlay.write_text("wiki:\n theme:\n palette: {accent: '#0969da'}\n")
When
with wiki_overlay(overlay): config, problems = load_wiki_config(repo)palette = dict(config.theme.palette)
Then
- ✓ problems is false
- ✓ palette["acc"] equals "#0969da"
- ✓ palette["ink"] equals "#222222"
- ✓ config.title equals "Mine"
- ✓ config.junit equals ("build/junit.xml",)
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_overlay.py:29 · its file's page
What it checks (3)
assert not problems, problemsnot attributedassert palette["acc"] == "#0969da" and palette["ink"] == "#222222"not attributedassert config.title == "Mine" and config.junit == ("build/junit.xml",)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