test_lines_are_grouped_per_test

Tests › tests/test_wiki_slices.py

passed Passed in the packaged run.

What this test is for

Why it exists

{file: {line: tests}} turns into {test: {file: lines}}.

Given

  1. —
→

When

  1. lines = lines_per_test(_CONTEXTS)
→

Then

  1. ✓ lines["test_load"] equals {"src/app.py": {20, 21}}
  2. ✓ 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)

  1. assert lines["test_load"] == {"src/app.py": {20, 21}} observes lines_per_test via lines
  2. assert lines["test_main"]["src/app.py"] == {10, 11, 20, 30} observes lines_per_test via lines

Where the product reaches it

  • build_wiki → _build_site → _lines_by_test → lines_per_test (flow)

Call flow

test_lines_are_grouped_per_test→lines_per_test

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_lines_are_grouped_per_test · 2 checkslines_per_testREQ-DDB-WIKI-041 · measured
Also reaches 1 requirement

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