test_an_unknown_arm_is_refused_by_name

Tests › tests/test_acceptance_cli.py

passed Passed in the packaged run.

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

  1. monkeypatch.setattr(cli, "check_revision", lambda *_a, **_k: None)
  2. monkeypatch.setattr(cli, "check_tool_tree", lambda *_a, **_k: None)
  3. 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

  1. cli.cmd_generate(args)
→

Then

  1. ✓ cli.cmd_generate(args) equals 1
  2. ✓ capsys.readouterr().err contains "index_onlyy"

tests/test_acceptance_cli.py:1185 · its file's page

What it checks (2)

  1. assert cli.cmd_generate(args) == 1, "a misspelled arm was accepted" observes cmd_generate
  2. assert "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_generate

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_an_unknown_arm_is_refused_by_name · 2 checkscmd_generatetool_identity_substratecompiled_languagesREQ-DDB-PIPE-012 · inferred
Also reaches 1 requirement

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