Pin the judge's question in the third-failure message

This commit was merged in pull request #19.
This commit is contained in:
2026-09-24 23:10:34 +02:00
parent c8aba30fdb
commit 564ab13631
+2
View File
@@ -195,6 +195,8 @@ class RunCycle(unittest.TestCase):
with self.assertRaises(SystemExit) as stopped:
loop.run_cycle("task", "premises", "A name", SESSION_ID)
self.assertTrue(stopped.exception.code.startswith("the judge "))
if plan.startswith("unquoted"):
self.assertIn("asking: q?", stopped.exception.code)
self.assertEqual(open(verdicts).read(), "")
starts = [args[args.index("-p") + 1:][:3] for args in map(json.loads, open(calls)) if "--json-schema" not in args]
self.assertEqual([start[1] for start in starts], ["--name", "--resume", "--name", "--resume", "--resume"])