test_an_explicit_flag_no_longer_drops_the_language_entry_point

Tests › tests/test_tiers.py

passed Passed in the packaged run.

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

  1. args = argparse.Namespace(entry_patterns=["%mystyle%"])
→

When

  1. resolved = _entry_patterns(args, {})
→

Then

  1. ✓ resolved.values contains "main"
  2. ✓ resolved.values contains "app_main"
  3. ✓ resolved.values contains "%mystyle%"
  4. ✓ resolved.values does not contain "%init%"
  5. ✓ resolved.tier equals TIER_EXPLICIT

tests/test_tiers.py:165 · its file's page

What it checks (5)

  1. assert "main" in resolved.values observes _entry_patterns via resolved
  2. assert "app_main" in resolved.values observes _entry_patterns via resolved
  3. assert "%mystyle%" in resolved.values observes _entry_patterns via resolved
  4. assert "%init%" not in resolved.values observes _entry_patterns via resolved
  5. assert resolved.tier == TIER_EXPLICIT observes _entry_patterns via resolved

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_patterns

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_an_explicit_flag_no_longer_drops_the_language_entry_point · 5 checks_entry_patternsstring_listREQ-DDB-CONFIG-001 · measured_entry_patternsresolve_layeredREQ-DDB-CONFIG-006 · measured
Also reaches 2 requirements

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