test_a_per_test_key_carries_the_file

Tests › tests/test_wiki_slice_identity.py

passed Passed in the packaged run.

What this test is for

Why it exists

pytest node id → `file::name`; parameters and classes dropped; setup phase ignored.

Given

  1. —
→

When

  1. _context_test("tests/test_a.py::TestK::test_x[p::q]|run")
  2. _context_test("tests/test_b.py::test_x|run")
  3. _context_test("tests/test_b.py::test_x|setup")
2 more
  1. test_name("tests/test_b.py::test_x")
  2. test_name("an LCOV TN name")
→

Then

  1. ✓ _context_test("tests/test_a.py::TestK::test_x[p::q]|run") equals "tests/test_a.py::test_x"
  2. ✓ _context_test("tests/test_b.py::test_x|run") equals "tests/test_b.py::test_x"
  3. ✓ _context_test("tests/test_b.py::test_x|setup") equals ""
  4. ✓ test_name("tests/test_b.py::test_x") equals "test_x"
  5. ✓ test_name("an LCOV TN name") equals "an LCOV TN name"

tests/test_wiki_slice_identity.py:66 · its file's page

What it checks (5)

  1. assert _context_test("tests/test_a.py::TestK::test_x[p::q]|run") == "tests/test_a.py::test_x" observes _context_test
  2. assert _context_test("tests/test_b.py::test_x|run") == "tests/test_b.py::test_x" observes _context_test
  3. assert _context_test("tests/test_b.py::test_x|setup") == "" observes _context_test
  4. assert test_name("tests/test_b.py::test_x") == "test_x" observes test_name
  5. assert test_name("an LCOV TN name") == "an LCOV TN name" observes test_name

Where the product reaches it

  • build_wiki → _build_site → _coverage → parse_contexts → _context_test (flow)
  • build_wiki → _build_site → test_pages → _exercises → _slice_groups → test_name (flow)

Call flow

test_a_per_test_key_carries_the_file→_context_test→test_name

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_a_per_test_key_carries_the_file · 5 checkstest_nameREQ-DDB-WIKI-041 · measured
Also reaches 1 requirement

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