More test about batch command
This commit is contained in:
@@ -1210,6 +1210,16 @@ class TestApi:
|
|||||||
cs = execute_batch_commands(p, cs)
|
cs = execute_batch_commands(p, cs)
|
||||||
assert len(cs.operations) == 2
|
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)
|
self.leave(p)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user