test_ingest_requirements_yaml_still_refuses_an_unrecognized_shape

Tests › tests/test_build_docs_db.py

passed Passed in the packaged run.

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

  1. db = tmp_path / "clew.db"
  2. sqlite3.connect(str(db)).close()
2 more
  1. yaml_path = tmp_path / "requirements.yaml"
  2. yaml_path.write_text( """ domains: navigation: requirements: - REQ-X-BAZ-003 """, )
→

When

  1. ingest_requirements_yaml(db, yaml_path)
  2. conn = sqlite3.connect(str(db))
  3. count = conn.execute("SELECT COUNT(*) FROM requirements").fetchone()[0]
  4. conn.close()
→

Then

  1. ✓ count equals 0

tests/test_build_docs_db.py:1103 · its file's page

What it checks (1)

  1. assert count == 0 not 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

test_ingest_requirements_yaml_still_refuses_an_unrecognized_shape→ingest_requirements_yaml

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_ingest_requirements_yaml_still_refuses_an_unrecognized_shape · 1 checksingest_requirements_yamlresolve_catalog_columnsREQ-DDB-CONFIG-001 · measuredingest_requirements_yaml_is_flat_req_listREQ-DDB-CONFIG-003 · measuredingest_requirements_yamlREQ-DDB-SCHEMA-006 · measuredingest_requirements_yamlREQ-DDB-SCHEMA-015 · measuredingest_requirements_yaml_is_flat_req_listallREQ-DDB-WIKI-054 · inferred

Requirements it verifies (2)

requirementlinked byimplementers exercised
REQ-DDB-PIPE-001catalogunknown
REQ-DDB-PIPE-010catalogunknown
Also reaches 5 requirements

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