test_the_table_is_created_even_at_zero_rows¶
Tests › tests/test_config_defaults.py
What this test is for
Why it exists
An EMPTY table means "we looked and this repo decides nothing"; an ABSENT one means the layer never ran. A consumer separating a correct negative from a detector failure needs both, and writing down the wrong one is the mistake this repo has made three times.
Given
db = tmp_path / "empty.db"conn = sqlite3.connect(str(db))
When
ensure_config_defaults_table(conn)found = conn.execute( "SELECT name FROM sqlite_master WHERE type='table' AND name='config_defaults'" ).fetchone()conn.close()
Then
- ✓ found holds
tests/test_config_defaults.py:188 · its file's page
What it checks (1)
assert found, "the table must exist at zero rows"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
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-015 measured
- REQ-DDB-SCHEMA-012 measured