test_the_checks_are_never_folded¶
Tests › tests/test_wiki_testcard.py
What this test is for
Why it exists
Seven assertions: every check is shown, none behind "more".
Given
src = ["def test_m():", " v = make()"] + [f" assert v == {i}" for i in range(7)]d = SimpleNamespace(name="test_m", file="tests/test_m.py", start=1)then = _card(lines=src, d=d, product={"make"}).split('class="tc-then"', 1)[1]
When
- —
Then
- ✓ then.count('class="ck ') equals 7
- ✓ then does not contain "<details"
tests/test_wiki_testcard.py:148 · its file's page
What it checks (1)
assert then.count('class="ck ') == 7 and "<details" not in thenobserves_cardviathen
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_the_checks_are_never_folded→_cardWhat 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-026 measured