Expect an unquoted verdict's failure to name its question
This commit is contained in:
@@ -417,7 +417,7 @@ class RunCycle(unittest.TestCase):
|
|||||||
self.assertEqual(stop.code, 1)
|
self.assertEqual(stop.code, 1)
|
||||||
self.assertTrue(stop.reason.startswith("the judge "))
|
self.assertTrue(stop.reason.startswith("the judge "))
|
||||||
if plan.startswith("unquoted"):
|
if plan.startswith("unquoted"):
|
||||||
self.assertIn("interrupting with: q?", stop.reason)
|
self.assertIn("for the question: q?", stop.reason)
|
||||||
self.assertEqual(open(verdicts).read(), "")
|
self.assertEqual(open(verdicts).read(), "")
|
||||||
self.assertEqual({json.loads(line)[0] for line in open(calls)}, {home})
|
self.assertEqual({json.loads(line)[0] for line in open(calls)}, {home})
|
||||||
starts = [args[args.index("-p") + 1:][:3] for args in map(json.loads, open(calls)) if "--json-schema" not in args]
|
starts = [args[args.index("-p") + 1:][:3] for args in map(json.loads, open(calls)) if "--json-schema" not in args]
|
||||||
|
|||||||
Reference in New Issue
Block a user