test_the_override_surface_is_reachable_from_the_package¶
Tests › tests/test_overrides.py
What this test is for
Why it exists
Exported, because "populated and unreachable" was the whole defect.
Given
conn = sqlite3.connect(overriding_db)
When
try: assert {o.name for o in q.overridden_by(conn, "sensor_poll")} == { "telemetry_report", "handle_cloud_command", } assert q.overrides_of(conn, "sensor_poll") == [] finally: conn.close()
Then
- ✓ q.__all__ contains "overrides_of"
- ✓ q.__all__ contains "overridden_by"
- ✓ q.__all__ contains "OverrideRef"
What it exercises
The parts of the system's flows this test ran, measured by per-test coverage: lit steps ran in this test, dimmed ones did not, and ▶ marks where the test called in. Each title opens the whole flow with these steps lit.
Build this wiki from the index · 7 of 400 steps
… 168 earlier steps
… 2 steps between
… 215 later steps
1 more
- Look up one name: everything the index holds about it · 7 of 226 steps
tests/test_overrides.py:241 · its file's page
What it checks (5)
assert "overrides_of" in q.__all__not attributedassert "overridden_by" in q.__all__not attributedassert "OverrideRef" in q.__all__not attributedassert {o.name for o in q.overridden_by(conn, "sensor_poll")} == { "telemetry_report", "handle_cloud_command", }observesoverridden_byassert q.overrides_of(conn, "sensor_poll") == []observesoverrides_of
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 4 requirements
Its run touches their code; that is reach, not proof.
- REQ-DDB-QUERY-001 measured
- REQ-DDB-QUERY-003 measured
- REQ-DDB-QUERY-009 measured
- REQ-DDB-QUERY-010 measured