test_the_committed_wire_manifest_is_current¶
Tests › tests/test_export.py
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
committed = json.loads((Path(__file__).parent.parent / "docs" / "wire-keys.json").read_text())
When
wire_manifest()
Then
- ✓ committed equals wire_manifest()
tests/test_export.py:187 · its file's page
What it checks (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)" )observeswire_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
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.
Also reaches 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-QUERY-014 measured