Release alpha 0.6.6 autochess flow
check / local-gate (push) Failing after 40s

This commit is contained in:
JWeBot Contributors
2026-10-15 17:10:28 +08:00
parent 9fff57134f
commit a74147e7f1
64 changed files with 1838 additions and 1060 deletions
+10
View File
@@ -61,6 +61,16 @@ class PlanContractTests(unittest.TestCase):
self.assertEqual(plan.kind, PlanKind.TEXT)
self.assertEqual(plan.to_mapping(), {"kind": "text", "text": "hello"})
def test_multi_text_plan_has_bounded_parts(self):
plan = ReplyPlan.multi_text(["one", "two"])
self.assertEqual(plan.kind, PlanKind.MULTI_TEXT)
self.assertEqual(
plan.to_mapping(),
{"kind": "multi_text", "texts": ["one", "two"]},
)
restored = ReplyPlan.from_mapping(plan.to_mapping())
self.assertEqual(restored, plan)
def test_no_reply_plan_cannot_contain_text(self):
with self.assertRaisesRegex(ContractViolation, "cannot contain text"):
ReplyPlan(kind=PlanKind.NO_REPLY, message="unexpected")