test_the_chart_renders_as_an_svg_the_player_can_step

Tests › tests/test_flowchart.py

passed Passed in the packaged run.

What this test is for

Why it exists

Ovals, boxes, one diamond per check, the mode's meaning, and `data-step` order.

Given

  1. —
→

When

  1. html = flowchart_html(chart(_pins(), BODY, 10, ["FM-1"]), MEANINGS)
  2. unassigned = flowchart_html(chart(_pins(), BODY, 10, ["FM-1", "FM-3"]), MEANINGS)
→

Then

  1. ✓ html.count("<polygon") equals 2
  2. ✓ html contains "<ellipse"
  3. ✓ html contains "wrong sum"
  4. ✓ html contains "overflow wraps silently"
  5. ✓ html contains 'data-step="0"'
  6. ✓ unassigned contains "unassigned"

tests/test_flowchart.py:55 · its file's page

What it checks (4)

  1. assert html.count("<polygon") == 2, "one diamond per assertion" observes flowchart_html via html
  2. assert "<ellipse" in html and "wrong sum" in html and "overflow wraps silently" in html observes flowchart_html via html
  3. assert 'data-step="0"' in html observes flowchart_html via html
  4. assert "unassigned" in unassigned observes flowchart_html via unassigned

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_chart_renders_as_an_svg_the_player_can_step→flowchart_html→chart→_pins

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_chart_renders_as_an_svg_the_player_can_step · 4 checkschartREQ-DDB-WIKI-043 · measured
Also reaches 1 requirement

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