test_dot_flows_are_balanced_digraphs¶
Tests › tests/test_export_conformance.py
What this test is for
Why it exists
Graphviz DOT: every flow export is a `digraph` with balanced braces.
Given
- —
When
files = list((_html(site) / "exports" / "flows").glob("*.dot"))all( f.read_text().startswith("digraph ") and _balanced(f.read_text()) for f in files )
Then
- ✓ files holds
- ✓ all( f.read_text().startswith("digraph ") and _balanced(f.read_text()) for f in files ) holds
tests/test_export_conformance.py:81 · its file's page
What it checks (1)
assert files and all( f.read_text().startswith("digraph ") and _balanced(f.read_text()) for f in files )observesall
Where the product reaches it
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.
Also reaches 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-WIKI-054 inferred