Pin an interrupt verdict without a question as incomplete, and one person in the empty-interrupt message

This commit is contained in:
2026-09-28 16:45:46 +02:00
parent b0afcfab57
commit 9bfb2fe173
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -408,7 +408,7 @@ class Interrupt(unittest.TestCase):
transcript.unlink()
run = checkout.run([*asked, interrupt()], terminal_input="")
self.assertEqual((run.code, run.roles()), (2, ["worker", "judge", "interrupt"]))
self.assertEqual(run.stderr.strip().splitlines()[-1], "the human is needed to answer the question above, but the interrupt ended without you typing anything")
self.assertEqual(run.stderr.strip().splitlines()[-1], "the human is needed to answer the question above, but the interrupt ended with nothing typed")
run = checkout.run([worker(say="A or B?"), judge(interrupt=True, evidence="A or B?", question="A or B?", vanish=True)], terminal_input="")
self.assertEqual((run.code, run.roles()), (1, ["worker", "judge"]))