test_the_stamped_alias_resolution_matches_the_one_the_pass_uses

Tests › tests/test_tiers.py

passed Passed in the packaged run.

What this test is for

Why it exists

PINS THE DOUBLE RESOLUTION. `resolve_key_alias_prefixes` is called twice per build — once inside `import_shared_key_edges_inferred` and once in `_build_stages` to stamp the tier — because the value is computed several frames below the stamping stage. It is pure and both calls take the same two locals, so they cannot disagree; this asserts that rather than trusting it, and would fail the moment either call site starts resolving something else.

Given

  1. —
→

When

  1. for sources in ( (None, None), ({KEY_ALIAS_FIELD: ["APP_KEY_"]}, None), ({"writers": [{"name_prefix": "App_Set_"}]}, {KEY_ALIAS_FIELD: ["WRAP_KEY_"]}), ): via_pass = resolve_shared_key_patterns(*sources)[2] via_stamp = resolve_key_alias_prefixes(*sources).values assert via_pass == via_stamp, sources
→

Then

  1. —

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

What it checks (1)

  1. assert via_pass == via_stamp, sources observes resolve_shared_key_patterns via via_pass

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_the_stamped_alias_resolution_matches_the_one_the_pass_uses→resolve_shared_key_patterns→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_the_stamped_alias_resolution_matches_the_one_the_pass_uses · 1 checksresolve_shared_key_patternsREQ-DDB-CONFIG-006 · measuredresolve_shared_key_patternsREQ-DDB-SCHEMA-005 · measuredresolve_shared_key_patternsload_shared_key_patternsdeclaration_originREQ-DDB-SCHEMA-012 · measured
Also reaches 3 requirements

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