test_drive_refuses_an_unknown_selection

Tests › tests/test_matrix.py

passed Passed in the packaged run.

What this test is for

Why it exists

The driver turns a bad selection into a refusal, not a traceback.

Given

  1. —
→

When

  1. rc = matrix.drive(_args(only=["nosuchtarget"], provision_only=True))
→

Then

  1. ✓ rc differs from 0
  2. ✓ capsys.readouterr().err contains "nosuchtarget"

tests/test_matrix.py:425 · its file's page

What it checks (2)

  1. assert rc != 0 observes drive via rc
  2. assert "nosuchtarget" in capsys.readouterr().err 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_drive_refuses_an_unknown_selection→drive→_args

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_drive_refuses_an_unknown_selection · 2 checksdrive… 5 calls …compiled_languagesREQ-DDB-PIPE-012 · inferred
Also reaches 1 requirement

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