test_flows_export_as_graphviz_dot¶
Tests › tests/test_wiki_exports.py
What this test is for
Why it exists
S7 (owner-approved 2026-11-17): Graphviz DOT beside Mermaid and PlantUML. DOT is a GRAPH format, so a flow is drawn as one: each lane a cluster, each function a node in its lane, each step an edge numbered in call order — the sequence survives as the numbers.
Verifies REQ-DDB-WIKI-029
Given
html = _html(site)dot = (html / "exports/flows/flow-load.dot").read_text()
When
- —
Then
- ✓ dot.startswith("digraph ") holds
- ✓ dot.rstrip().endswith("}") holds
- ✓ dot.count("subgraph cluster_") equals 2
- ✓ dot contains 'label="src/data.py"'
- ✓ dot contains '"load@src/data.py" -> "parse@src/data.py" [label="1"'
- ✓ site["flow-load.html"] contains 'href="exports/flows/flow-load.dot"'
tests/test_wiki_exports.py:98 · its file's page
What it checks (4)
assert dot.startswith("digraph ") and dot.rstrip().endswith("}")not attributedassert dot.count("subgraph cluster_") == 2 and 'label="src/data.py"' in dotnot attributedassert '"load@src/data.py" -> "parse@src/data.py" [label="1"' in dotnot attributedassert 'href="exports/flows/flow-load.dot"' in site["flow-load.html"]not attributed
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_flows_export_as_graphviz_dot→_htmlWhat 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.
Requirements it verifies (1)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-WIKI-029 | catalog | unknown |