test_a_pinned_check_shows_its_traced_value¶
Tests › tests/test_wiki_checkpins.py
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
html = _pinned(Pin("assert save(2) == 2", "direct", "save", line=12), "2")
When
- —
Then
- ✓ html contains '<span class="traced">returned <code>2</code> in the recorded run</span>'
- ✓ _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)
assert '<span class="traced">returned <code>2</code> in the recorded run</span>' in htmlobserves_pinnedviahtmlassert "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
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.
Requirements it verifies (1)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-WIKI-044 | catalog | unknown |
Also reaches 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-WIKI-043 measured