test_a_main_is_named_by_its_file_not_main

Tests › tests/test_wiki_architecture.py

passed Passed in the packaged run.

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

  1. entries = [Entry("main", "main", "tools/serve.py", "", None)]
→

When

  1. l2 = _level(architecture_html("Demo", _GRAPH, entries), 2)
→

Then

  1. ✓ l2 contains ">tools/serve.py</text>"
  2. ✓ l2 does not contain ">main</text>"

tests/test_wiki_architecture.py:92 · its file's page

What it checks (1)

  1. assert ">tools/serve.py</text>" in l2 and ">main</text>" not in l2 observes _level via l2

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_a_main_is_named_by_its_file_not_main→_level→architecture_html

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_a_main_is_named_by_its_file_not_main · 1 checksarchitecture_htmlREQ-DDB-WIKI-046 · measured
Also reaches 1 requirement

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