test_a_main_is_named_by_its_file_not_main¶
Tests › tests/test_wiki_architecture.py
What this test is for
Why it exists
L2: a `main` is named by its file, never a row of `main`s. SPEC CHANGED (UX review E-19, owner Q/A 2026-11-22): by its PATH (`tools/serve.py`) — `main.py` alone named nothing beside the console-script names.
Given
entries = [Entry("main", "main", "tools/serve.py", "", None)]
When
l2 = _level(architecture_html("Demo", _GRAPH, entries), 2)
Then
- ✓ l2 contains ">tools/serve.py</text>"
- ✓ l2 does not contain ">main</text>"
tests/test_wiki_architecture.py:92 · its file's page
What it checks (1)
assert ">tools/serve.py</text>" in l2 and ">main</text>" not in l2observes_levelvial2
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
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-046 measured