More test about batch command

This commit is contained in:
WQY\qiong
2022-10-21 20:17:24 +08:00
parent a8cd417188
commit a3e491091e

View File

@@ -1210,6 +1210,16 @@ class TestApi:
cs = execute_batch_commands(p, cs)
assert len(cs.operations) == 2
cs = ChangeSet()
cs.delete({'type': JUNCTION, 'id': 'j1'})
cs.delete({'type': JUNCTION, 'id': 'j2'})
cs = execute_batch_commands(p, cs)
assert len(cs.operations) == 2
cs = execute_undo(p)
assert len(cs.operations) == 1
self.leave(p)