test_without_an_accepted_list_nothing_is_called_unaccepted

Tests › tests/test_wiki_sbom.py

passed Passed in the packaged run.

What this test is for

Why it exists

No policy declared: NOASSERTION still flagged, "not accepted" never claimed, and said.

Given

  1. comps = [Component("left-pad", "1.3.0", "WTFPL", "library", "", "")]
→

When

  1. html = sbom_html([("bom.cdx.json", ("demo", "MIT"), comps)], (), {}, 0)
→

Then

  1. ✓ html does not contain 'class="flag unaccepted"'
  2. ✓ html contains "No accepted-licence list"

tests/test_wiki_sbom.py:109 · its file's page

What it checks (1)

  1. assert 'class="flag unaccepted"' not in html and "No accepted-licence list" in html observes sbom_html via html

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

test_without_an_accepted_list_nothing_is_called_unaccepted→sbom_html

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_without_an_accepted_list_nothing_is_called_unaccepted · 1 checkssbom_htmlREQ-DDB-WIKI-051 · measuredsbom_html_row_acceptedallREQ-DDB-WIKI-054 · inferred
Also reaches 2 requirements

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