test_the_committed_wire_manifest_is_current

Tests › tests/test_export.py

passed Passed in the packaged run.

What this test is for

Why it exists

A COVERED KEY CANNOT CHANGE UNNOTICED. The manifest is regenerated from the reply dataclasses and compared with `docs/wire-keys.json`; a renamed or removed field fails here and must be shipped with a `WIRE_VERSION` decision (an added one is additive — regenerate).

Given

  1. committed = json.loads((Path(__file__).parent.parent / "docs" / "wire-keys.json").read_text())
→

When

  1. wire_manifest()
→

Then

  1. ✓ committed equals wire_manifest()

tests/test_export.py:187 · its file's page

What it checks (1)

  1. assert committed == wire_manifest(), ( "the wire keys changed — regenerate with " "`.venv/bin/python -m clew.query.wire_manifest > docs/wire-keys.json` and decide whether " "WIRE_VERSION moves (a removed or renamed key moves it)" ) observes wire_manifest

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_committed_wire_manifest_is_current→wire_manifest

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_committed_wire_manifest_is_current · 1 checkswire_manifestREQ-DDB-QUERY-014 · measured
Also reaches 1 requirement

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