test_import_req_edges_permissive_default_populates

Tests › tests/test_requirements_declared.py

passed Passed in the packaged run.

What this test is for

Why it exists

The test says nothing about why.

Verifies REQ-DDB-CONFIG-001

Given

  1. db = _make_tagged_db(tmp_path, "REQ-0621", "REQ-0900")
→

When

  1. import_req_edges(db)
  2. conn = sqlite3.connect(str(db))
  3. rows = conn.execute( "SELECT req_id, memberdef_rowid FROM req_edges ORDER BY memberdef_rowid", ).fetchall()
  4. conn.close()
→

Then

  1. ✓ rows equals [("REQ-0621", 1), ("REQ-0900", 2)]

tests/test_requirements_declared.py:91 · its file's page

What it checks (1)

  1. assert rows == [("REQ-0621", 1), ("REQ-0900", 2)] 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_import_req_edges_permissive_default_populates→_make_tagged_db→import_req_edges

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_import_req_edges_permissive_default_populates · 1 checksimport_req_edgesREQ-DDB-SCHEMA-006 · measured

Requirements it verifies (1)

requirementlinked byimplementers exercised
REQ-DDB-CONFIG-001catalogunknown
Also reaches 1 requirement

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