test_the_overlay_merges_over_the_repositorys_wiki_section

Tests › tests/test_wiki_overlay.py

passed Passed in the packaged run.

What this test is for

Why it exists

Mappings merge key by key; the repository's other sections are untouched.

Given

  1. repo = _repo(tmp_path)
  2. overlay = tmp_path / "org.yaml"
  3. overlay.write_text("wiki:\n theme:\n palette: {accent: '#0969da'}\n")
→

When

  1. with wiki_overlay(overlay): config, problems = load_wiki_config(repo)
  2. palette = dict(config.theme.palette)
→

Then

  1. ✓ problems is false
  2. ✓ palette["acc"] equals "#0969da"
  3. ✓ palette["ink"] equals "#222222"
  4. ✓ config.title equals "Mine"
  5. ✓ 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

callercallercallercallerclew/wiki/build.pyclew/wiki/build.pyclew/wiki/build.pyclew/wiki/build.pyclew/wiki/config.pyclew/wiki/config.pyclew/wiki/config.pyclew/wiki/config.pyother filesother filesother filesother filestry (line 708)trybuild_wiki1. build_wiki → load_wiki_config1load_wiki_config2. load_wiki_config → _read_section2_read_section▶ test enters3–6. load_wiki_config → _overlaid3_overlaid +3 more7. _requirements_section → read_requirements_section7read_requirements_section8–9. read_requirements_section → _validate_node8_validate_node +1 more

… 6 steps between

callercallercallercallercallerclew/wiki/build.pyclew/wiki/build.pyclew/wiki/build.pyclew/wiki/build.pyclew/wiki/build.pyclew/wiki/config.pyclew/wiki/config.pyclew/wiki/config.pyclew/wiki/config.pyclew/wiki/config.pyother filesother filesother filesother filesother filesloop (line 417)loopalt (line 421)altloop (line 135)looploop (line 632)looptry (line 752)tryloop (line 1312)loopopt (line 1314)optbuild_wiki16. list → link16link17. _validate_dict_node → _validate_node17_validate_node18. load_wiki_config → _top_level18_top_level▶ test enters19–21. load_wiki_config → _unknown19_unknown +2 more22. _strings → all22all23–25. all → _events23_events +2 more26–28. load_wiki_config → _strings26_strings +2 more29. _audiences → _unknown29_unknown30–37. load_wiki_config → _pinned_catalogs30_pinned_catalogs +7 more38. _declared_report → read_guard_section38read_guard_section39–41. load_wiki_config → _issues39_issues +2 more42. _sbom → all42all43–47. load_wiki_config → _one_of43_one_of +4 more48. _comments → all48all49–55. load_wiki_config → _doc_tags49_doc_tags +6 more56. build_wiki → report_limit56report_limit57. build_wiki → _build_site57_build_site

… 343 later steps

tests/test_wiki_overlay.py:29 · its file's page

What it checks (3)

  1. assert not problems, problems not attributed
  2. assert palette["acc"] == "#0969da" and palette["ink"] == "#222222" not attributed
  3. assert config.title == "Mine" and config.junit == ("build/junit.xml",) not attributed

Where the product reaches it

  • build_wiki → load_wiki_config (flow)

Call flow

test_the_overlay_merges_over_the_repositorys_wiki_section→_repo→wiki_overlay→load_wiki_config

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.

test_the_overlay_merges_over_the_repositorys_wiki_section · 3 checksload_wiki_config_requirements_sectionread_requirements_sectionREQ-DDB-GUARD-012 · measuredload_wiki_config_commentsallREQ-DDB-WIKI-054 · inferred
Also reaches 2 requirements

Its run touches their code; that is reach, not proof.