test_ingest_requirements_yaml_still_refuses_an_unrecognized_shape¶
Tests › tests/test_build_docs_db.py
What this test is for
Why it exists
Reading a second shape must not become "read anything". A nested `domains:` tree is parsed only by the owning repo's own scripts, and guessing at it would invent traceability rather than report it — so it stays 0 rows, with the table created so downstream LEFT JOINs still work.
Verifies REQ-DDB-PIPE-001 REQ-DDB-PIPE-010
Given
db = tmp_path / "clew.db"sqlite3.connect(str(db)).close()
2 more
yaml_path = tmp_path / "requirements.yaml"yaml_path.write_text( """ domains: navigation: requirements: - REQ-X-BAZ-003 """, )
When
ingest_requirements_yaml(db, yaml_path)conn = sqlite3.connect(str(db))count = conn.execute("SELECT COUNT(*) FROM requirements").fetchone()[0]conn.close()
Then
- ✓ count equals 0
tests/test_build_docs_db.py:1103 · its file's page
What it checks (1)
assert count == 0not 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
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.
Requirements it verifies (2)
| requirement | linked by | implementers exercised |
|---|---|---|
| REQ-DDB-PIPE-001 | catalog | unknown |
| REQ-DDB-PIPE-010 | catalog | unknown |
Also reaches 5 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-CONFIG-001 measured
- REQ-DDB-CONFIG-003 measured
- REQ-DDB-SCHEMA-006 measured
- REQ-DDB-SCHEMA-015 measured
- REQ-DDB-WIKI-054 inferred