test_an_unknown_arm_is_refused_by_name¶
Tests › tests/test_acceptance_cli.py
What this test is for
Why it exists
REFUSED BY NAME, like every other declaration in this project. A typo'd arm that silently matched nothing would generate zero cells and report success — a run directory with no answers and a green exit code, which reads as "the grid is cheap" rather than "the filter was wrong".
Given
monkeypatch.setattr(cli, "check_revision", lambda *_a, **_k: None)monkeypatch.setattr(cli, "check_tool_tree", lambda *_a, **_k: None)args = cli.argparse.Namespace( rubric=MBEDTLS, models=["claude-haiku-5-5"], replicates=1, seed=7, repo=tmp_path / "repo", out=tmp_path / "answers", mcp_config=None, timeout=60, resume=False, arms=["index_onlyy"], )
When
cli.cmd_generate(args)
Then
- ✓ cli.cmd_generate(args) equals 1
- ✓ capsys.readouterr().err contains "index_onlyy"
tests/test_acceptance_cli.py:1185 · its file's page
What it checks (2)
assert cli.cmd_generate(args) == 1, "a misspelled arm was accepted"observescmd_generateassert "index_onlyy" in capsys.readouterr().err, "the refusal did not name the unknown arm"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_an_unknown_arm_is_refused_by_name→cmd_generateWhat 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 1 requirement
Its run touches their code; that is reach, not proof.
- REQ-DDB-PIPE-012 inferred