test_discovery_still_declines_a_manifest_no_key_list_names¶
Tests › tests/test_datamodel.py
What this test is for
Why it exists
THE RULE THAT MUST NOT MOVE. A generator ships example manifests that parse identically to a real one, so during DISCOVERY a shape match is not evidence — the repository's own key list is. `manifests_unlisted` counts what that rule declined, and this pins it.
Given
repo = tmp_path / "repo"repo.mkdir()
2 more
_ingot_manifest(repo)found = discover(repo, ())
When
- —
Then
- ✓ found.keys equals ()
- ✓ found.manifests_unlisted equals 1
What it exercises
The parts of the system's flows this test ran, measured by per-test coverage: lit steps ran in this test, dimmed ones did not, and ▶ marks where the test called in. Each title opens the whole flow with these steps lit.
thread `clew-first-build-` — `_first_build_worker` (clew/mcp_server/server.py) · 4 of 142 steps
… 8 earlier steps
… 126 later steps
2 more
- Build, refresh and check the index · 4 of 153 steps
- clew — `main` (clew/cli.py) · 4 of 400 steps
tests/test_datamodel.py:1067 · its file's page
What it checks (2)
assert found.keys == (), "discovery must not admit a manifest no key list names"not attributedassert found.manifests_unlisted == 1, "and must say so by count"not attributed
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_discovery_still_declines_a_manifest_no_key_list_names→_ingot_manifestWhat 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 4 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-CONFIG-001 measured
- REQ-DDB-INDEX-005 measured
- REQ-DDB-PIPE-003 measured
- REQ-DDB-SCHEMA-013 measured