test_neither_parser_reads_the_other_dialect

Tests › tests/test_datamodel.py

passed Passed in the packaged run.

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

  1. ingot = tmp_path / "widgetbus.toml"
  2. ingot.write_text(MANIFEST, encoding="utf-8")
2 more
  1. udm = tmp_path / "widgetbus_001.yaml"
  2. udm.write_text(UDM_MANIFEST, encoding="utf-8")
→

When

  1. parse_udm_manifest(ingot, tmp_path)
  2. parse_ingot_manifest(udm, tmp_path)
→

Then

  1. ✓ parse_udm_manifest(ingot, tmp_path) is None
  2. ✓ parse_ingot_manifest(udm, tmp_path) is None

tests/test_datamodel.py:481 · its file's page

What it checks (2)

  1. assert parse_udm_manifest(ingot, tmp_path) is None observes parse_udm_manifest
  2. assert parse_ingot_manifest(udm, tmp_path) is None observes parse_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

test_neither_parser_reads_the_other_dialect→parse_udm_manifest→parse_ingot_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_neither_parser_reads_the_other_dialect · 2 checksparse_ingot_manifestrel_keyREQ-DDB-PIPE-003 · inferredparse_ingot_manifestREQ-DDB-SCHEMA-013 · measured
Also reaches 2 requirements

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