test_an_explicit_manifest_file_outranks_a_declared_section

Tests › tests/test_tiers.py

passed Passed in the packaged run.

What this test is for

Why it exists

Tier 1 beats tier 2, and the split is read from the SOURCE TYPE — `cli._declared_or_flag` hands back a Path for `--shared-key-patterns` and the parsed mapping for a declaration, so no second argument has to be kept in sync.

Given

  1. manifest = tmp_path / "patterns.yaml"
  2. manifest.write_text(f"{KEY_ALIAS_FIELD}: ['FLAG_KEY_']\n", encoding="utf-8")
→

When

  1. resolved = resolve_key_alias_prefixes(manifest, {KEY_ALIAS_FIELD: ["DECL_KEY_"]})
→

Then

  1. ✓ resolved.tier equals TIER_EXPLICIT
  2. ✓ set(resolved.values) equals {"FLAG_KEY_", "DECL_KEY_", *DEFAULT_KEY_ALIAS_PREFIXES}

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

What it checks (2)

  1. assert resolved.tier == TIER_EXPLICIT observes resolve_key_alias_prefixes via resolved
  2. assert set(resolved.values) == {"FLAG_KEY_", "DECL_KEY_", *DEFAULT_KEY_ALIAS_PREFIXES}, ( "tier 1 wins the TIER, but tier 2 is still a stated layer contributing values" ) observes resolve_key_alias_prefixes 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_manifest_file_outranks_a_declared_section→resolve_key_alias_prefixes

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_manifest_file_outranks_a_declared_section · 2 checksresolve_key_alias_prefixesREQ-DDB-CONFIG-006 · measuredresolve_key_alias_prefixesREQ-DDB-SCHEMA-005 · measured
Also reaches 2 requirements

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