test_neither_parser_reads_the_other_dialect¶
Tests › tests/test_datamodel.py
What this test is for
Why it exists
THE NEGATIVE HALF, and it is what stops the two parsers becoming one by accident. Each positive test above passes with a parser that accepted anything shaped roughly right; only a refusal pins that the shape gate discriminates. It also pins the file-extension split not being what does the work — the ingot parser is handed the YAML document directly.
Given
ingot = tmp_path / "widgetbus.toml"ingot.write_text(MANIFEST, encoding="utf-8")
2 more
udm = tmp_path / "widgetbus_001.yaml"udm.write_text(UDM_MANIFEST, encoding="utf-8")
When
parse_udm_manifest(ingot, tmp_path)parse_ingot_manifest(udm, tmp_path)
Then
- ✓ parse_udm_manifest(ingot, tmp_path) is None
- ✓ parse_ingot_manifest(udm, tmp_path) is None
tests/test_datamodel.py:481 · its file's page
What it checks (2)
assert parse_udm_manifest(ingot, tmp_path) is Noneobservesparse_udm_manifestassert parse_ingot_manifest(udm, 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