test_vote_records_the_reason_each_attempt_failed

Tests › tests/test_grader.py

passed Passed in the packaged run.

What this test is for

Why it exists

"3/3 calls failed" cannot tell a reader whether the judge was rate-limited, timed out, or replied without a verdict block — three failures needing three different responses. Recording only the tally made an unruled decision uninvestigable after the fact.

Given

  1. monkeypatch.setattr(judge, "ask", lambda *_a, **_k: judge.Reply(error="rc=1: overloaded"))
→

When

  1. voted = judge.vote("m", "a", "claude-x-1", 3)
  2. all("overloaded" in r for r in voted.reasons)
  3. monkeypatch.setattr(judge, "ask", lambda *_a, **_k: judge.Reply(text="I think it is fine."))
  4. voted = judge.vote("m", "a", "claude-x-1", 1)
→

Then

  1. ✓ voted.verdict is None
  2. ✓ voted.errors equals 3
  3. ✓ voted.reasons holds
  4. ✓ all("overloaded" in r for r in voted.reasons) holds
  5. ✓ voted.reasons[0] contains "no VERDICT line"

tests/test_grader.py:321 · its file's page

What it checks (3)

  1. assert voted.verdict is None and voted.errors == 3 observes vote via voted
  2. assert voted.reasons and all("overloaded" in r for r in voted.reasons) observes all
  3. assert "no VERDICT line" in voted.reasons[0] observes vote via voted

Where the product reaches it

  • dossier → _rank_enum_over_mirror → _class_side_is_only_enum_mirrors → all (flow)

Call flow

test_vote_records_the_reason_each_attempt_failed→vote→all

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_vote_records_the_reason_each_attempt_failed · 3 checksallREQ-DDB-WIKI-054 · inferred
Also reaches 1 requirement

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