test_a_pinned_check_shows_its_traced_value

Tests › tests/test_wiki_checkpins.py

passed Passed in the packaged run.

What this test is for

Why it exists

On the page: "observes `save` — returned `2` in the recorded run".

Verifies REQ-DDB-WIKI-044

Given

  1. html = _pinned(Pin("assert save(2) == 2", "direct", "save", line=12), "2")
→

When

  1. —
→

Then

  1. ✓ html contains '<span class="traced">returned <code>2</code> in the recorded run</span>'
  2. ✓ _pinned(Pin("assert x", "not attributed", line=13), None) does not contain "traced"

tests/test_wiki_checkpins.py:124 · its file's page

What it checks (2)

  1. assert '<span class="traced">returned <code>2</code> in the recorded run</span>' in html observes _pinned via html
  2. assert "traced" not in _pinned(Pin("assert x", "not attributed", line=13), None) observes _pinned

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_a_pinned_check_shows_its_traced_value→_pinned

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_pinned_check_shows_its_traced_value · 2 checks_pinnedREQ-DDB-WIKI-043 · measured

Requirements it verifies (1)

requirementlinked byimplementers exercised
REQ-DDB-WIKI-044catalogunknown
Also reaches 1 requirement

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