test_an_explicit_flag_no_longer_drops_the_language_entry_point¶
Tests › tests/test_tiers.py
What this test is for
Why it exists
THE BUG. Watched failing before the change: `--entry-patterns %mystyle%` resolved to `['%mystyle%']`, so `main` and `app_main` were not seeds, liveness collapsed, and nothing in the build or the index said so.
Given
args = argparse.Namespace(entry_patterns=["%mystyle%"])
When
resolved = _entry_patterns(args, {})
Then
- ✓ resolved.values contains "main"
- ✓ resolved.values contains "app_main"
- ✓ resolved.values contains "%mystyle%"
- ✓ resolved.values does not contain "%init%"
- ✓ resolved.tier equals TIER_EXPLICIT
tests/test_tiers.py:165 · its file's page
What it checks (5)
assert "main" in resolved.valuesobserves_entry_patternsviaresolvedassert "app_main" in resolved.valuesobserves_entry_patternsviaresolvedassert "%mystyle%" in resolved.valuesobserves_entry_patternsviaresolvedassert "%init%" not in resolved.valuesobserves_entry_patternsviaresolvedassert resolved.tier == TIER_EXPLICITobserves_entry_patternsviaresolved
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_an_explicit_flag_no_longer_drops_the_language_entry_point→_entry_patternsWhat 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 2 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-CONFIG-001 measured
- REQ-DDB-CONFIG-006 measured