From a3e491091ec4ba771bb9dd08f9108a36e29c14b8 Mon Sep 17 00:00:00 2001 From: "WQY\\qiong" Date: Fri, 21 Oct 2022 20:17:24 +0800 Subject: [PATCH] More test about batch command --- test_tjnetwork.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test_tjnetwork.py b/test_tjnetwork.py index 5efecb3..04cd9c8 100644 --- a/test_tjnetwork.py +++ b/test_tjnetwork.py @@ -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)