auto-sync: 2026-06-03 08:04:50

This commit is contained in:
cfdaily
2026-06-03 08:04:50 +08:00
parent ab87957629
commit ef3824369c
+2 -2
View File
@@ -189,8 +189,8 @@ class TestStateMachine:
bb, _, _ = tmp_db
bb.create_task(Task(id="t1", title="Cancel"))
assert bb.update_task_status("t1", "cancelled")
# cancelled is terminal
assert not bb.update_task_status("t1", "pending")
# cancelled → pending is allowed (cancel can be undone)
assert bb.update_task_status("t1", "pending")
# ===================================================================