test_a_malformed_sbom_section_is_refused_by_name¶
Tests › tests/test_wiki_sbom.py
What this test is for
Why it exists
`files: sbom.json` (a string, not a list) is a problem naming the key.
Verifies REQ-DDB-WIKI-051
Given
(tmp_path / ".clew.yaml").write_text("wiki:\n sbom: {files: sbom.json}\n")
When
config, problems = load_wiki_config(tmp_path, None)
Then
- ✓ any("wiki.sbom.files" in p for p in problems) holds
- ✓ config.sbom_files equals ( "sbom.spdx.json", "bom.cdx.json", )
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_sbom.py:126 · its file's page
What it checks (1)
assert any("wiki.sbom.files" in p for p in problems) and config.sbom_files == ( "sbom.spdx.json", "bom.cdx.json", )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.
Requirements it verifies (1)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-WIKI-051 | catalog | unknown |
Also reaches 2 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-GUARD-012 measured
- REQ-DDB-WIKI-054 inferred