Skip to content

Commit 7e03baa

Browse files
committed
tests: adapt compile CB counting
I do not think that this test tests much, but hey, it's there, so let's adapt to how the upstream libyang actually behaves and to what it calls now. Signed-off-by: Jan Kundrát <jan.kundrat@cesnet.cz>
1 parent da03eb3 commit 7e03baa

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎tests/test_extension.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,15 @@ def tearDown(self):
8686
def test_extension_basic(self):
8787
self.ctx.load_module("yolo-system")
8888
self.assertEqual(5, self.plugin.parse_clb_called)
89-
self.assertEqual(6, self.plugin.compile_clb_called)
89+
self.assertEqual(10, self.plugin.compile_clb_called)
9090
self.assertEqual(0, self.plugin.parse_free_clb_called)
9191
self.assertEqual(0, self.plugin.compile_free_clb_called)
9292
self.assertEqual("type", self.plugin.parse_parent_stmt)
9393
self.ctx.destroy()
9494
self.assertEqual(5, self.plugin.parse_clb_called)
95-
self.assertEqual(6, self.plugin.compile_clb_called)
95+
self.assertEqual(10, self.plugin.compile_clb_called)
9696
self.assertEqual(5, self.plugin.parse_free_clb_called)
97-
self.assertEqual(6, self.plugin.compile_free_clb_called)
97+
self.assertEqual(10, self.plugin.compile_free_clb_called)
9898

9999
def test_extension_invalid_parse(self):
100100
self.plugin.parse_clb_exception = LibyangExtensionError(

0 commit comments

Comments
 (0)