Skip to content

Commit a6d6284

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 991d14e commit a6d6284

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
@@ -83,15 +83,15 @@ def tearDown(self):
8383
def test_extension_basic(self):
8484
self.ctx.load_module("yolo-system")
8585
self.assertEqual(5, self.plugin.parse_clb_called)
86-
self.assertEqual(6, self.plugin.compile_clb_called)
86+
self.assertEqual(10, self.plugin.compile_clb_called)
8787
self.assertEqual(0, self.plugin.parse_free_clb_called)
8888
self.assertEqual(0, self.plugin.compile_free_clb_called)
8989
self.assertEqual("type", self.plugin.parse_parent_stmt)
9090
self.ctx.destroy()
9191
self.assertEqual(5, self.plugin.parse_clb_called)
92-
self.assertEqual(6, self.plugin.compile_clb_called)
92+
self.assertEqual(10, self.plugin.compile_clb_called)
9393
self.assertEqual(5, self.plugin.parse_free_clb_called)
94-
self.assertEqual(6, self.plugin.compile_free_clb_called)
94+
self.assertEqual(10, self.plugin.compile_free_clb_called)
9595

9696
def test_extension_invalid_parse(self):
9797
self.plugin.parse_clb_exception = LibyangExtensionError(

0 commit comments

Comments
 (0)