test_lines_are_grouped_per_test¶
Tests › tests/test_wiki_slices.py
What this test is for
Why it exists
{file: {line: tests}} turns into {test: {file: lines}}.
Given
- —
When
lines = lines_per_test(_CONTEXTS)
Then
- ✓ lines["test_load"] equals {"src/app.py": {20, 21}}
- ✓ lines["test_main"]["src/app.py"] equals {10, 11, 20, 30}
tests/test_wiki_slices.py:71 · its file's page
What it checks (2)
assert lines["test_load"] == {"src/app.py": {20, 21}}observeslines_per_testvialinesassert lines["test_main"]["src/app.py"] == {10, 11, 20, 30}observeslines_per_testvialines
Where the product reaches it
build_wiki→_build_site→_lines_by_test→lines_per_test(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 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-WIKI-041 measured