test_import_req_edges_creates_expected_rows

Tests › tests/test_build_docs_db.py

passed Passed in the packaged run.

What this test is for

Why it exists

The test says nothing about why.

Verifies REQ-DDB-PIPE-001 REQ-DDB-PIPE-010

Given

  1. —
→

When

  1. import_req_edges(req_tagged_db)
  2. conn = sqlite3.connect(str(req_tagged_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-0001", 1), ("REQ-0001", 2), ]

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

What it checks (1)

  1. assert rows == [ ("REQ-0001", 1), ("REQ-0001", 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_creates_expected_rows→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_creates_expected_rows · 1 checksimport_req_edgesREQ-DDB-SCHEMA-006 · measured

Requirements it verifies (2)

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

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