test_mermaid_flows_are_sequence_diagrams¶
Tests › tests/test_export_conformance.py
What this test is for
Why it exists
Mermaid: every flow export opens with `sequenceDiagram`.
Given
- —
When
files = list((_html(site) / "exports" / "flows").glob("*.mmd"))all(f.read_text().lstrip().startswith("sequenceDiagram") for f in files)
Then
- ✓ files holds
- ✓ all(f.read_text().lstrip().startswith("sequenceDiagram") for f in files) holds
tests/test_export_conformance.py:66 · its file's page
What it checks (1)
assert files and all(f.read_text().lstrip().startswith("sequenceDiagram") 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