test_the_checks_are_never_folded

Tests › tests/test_wiki_testcard.py

passed Passed in the packaged run.

What this test is for

Why it exists

Seven assertions: every check is shown, none behind "more".

Given

  1. src = ["def test_m():", " v = make()"] + [f" assert v == {i}" for i in range(7)]
  2. d = SimpleNamespace(name="test_m", file="tests/test_m.py", start=1)
  3. then = _card(lines=src, d=d, product={"make"}).split('class="tc-then"', 1)[1]
→

When

  1. —
→

Then

  1. ✓ then.count('class="ck ') equals 7
  2. ✓ then does not contain "<details"

tests/test_wiki_testcard.py:148 · its file's page

What it checks (1)

  1. assert then.count('class="ck ') == 7 and "<details" not in then observes _card via then

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→_card

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_the_checks_are_never_folded · 1 checks_cardtest_cardREQ-DDB-WIKI-026 · measured
Also reaches 1 requirement

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