test_udm_manifest_without_a_namespace_is_declined¶
Tests › tests/test_datamodel.py
What this test is for
Why it exists
WRITTEN BECAUSE A MUTATION CONTROL SAID IT WAS MISSING. Deleting the `namespace` conjunct from the UDM shape gate broke no test, so the conjunct was undefended — and it is load-bearing: with no namespace every composed name would be `_CLASS_KEY`, a leading underscore that matches no generated accessor, so every key in such a document would read as declared-and-never-observed rather than as a document that should not have been read.
Given
path = tmp_path / "nameless.yaml"path.write_text( "classes:\n - name: telemetry\n data:\n - name: Uptime\n", encoding="utf-8", )
When
parse_udm_manifest(path, tmp_path)
Then
- ✓ parse_udm_manifest(path, tmp_path) is None
tests/test_datamodel.py:512 · its file's page
What it checks (1)
assert parse_udm_manifest(path, tmp_path) is Noneobservesparse_udm_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