test_the_repositorys_files_licences_are_summarised¶
Tests › tests/test_wiki_sbom.py
What this test is for
Why it exists
S5: counts by licence, and how many indexed files carry no identifier.
Given
- —
When
html = sbom_html([], (), {"MIT": 40, "Apache-2.0": 2}, 7)files = html.split('<section class="file-licences">', 1)[1]
Then
- ✓ files contains "MIT"
- ✓ files contains ">40<"
- ✓ files contains "7 indexed files carry no SPDX identifier"
- ✓ html contains "No SBOM"
tests/test_wiki_sbom.py:116 · its file's page
What it checks (2)
assert ( "MIT" in files and ">40<" in files and "7 indexed files carry no SPDX identifier" in files )not attributedassert "No SBOM" in htmlobservessbom_htmlviahtml
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.
Also reaches 2 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-WIKI-051 measured
- REQ-DDB-WIKI-054 inferred