test_ordinary_toml_is_declined¶
Tests › tests/test_datamodel.py
What this test is for
Why it exists
The SUCCESS half is `test_manifest_is_parsed` below; this is the half that pins the gate. `NOT_A_MANIFEST` carries a TOP-LEVEL `classes` list on purpose, so a gate that checked only for that key's presence and its type admits it and this test fails. See the fixture's own note: the first version nested that key and therefore tested nothing.
Given
path = tmp_path / "pyproject.toml"path.write_text(NOT_A_MANIFEST, encoding="utf-8")
When
parse_ingot_manifest(path, tmp_path)
Then
- ✓ parse_ingot_manifest(path, tmp_path) is None
tests/test_datamodel.py:238 · its file's page
What it checks (1)
assert parse_ingot_manifest(path, tmp_path) is Noneobservesparse_ingot_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 2 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-PIPE-003 inferred
- REQ-DDB-SCHEMA-013 measured