test_the_stamped_alias_resolution_matches_the_one_the_pass_uses¶
Tests › tests/test_tiers.py
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
- —
When
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
- —
tests/test_tiers.py:329 · its file's page
What it checks (1)
assert via_pass == via_stamp, sourcesobservesresolve_shared_key_patternsviavia_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_prefixesWhat 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 3 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-CONFIG-006 measured
- REQ-DDB-SCHEMA-005 measured
- REQ-DDB-SCHEMA-012 measured