Skip to content

Commit 367e2e5

Browse files
jeanseb6windrjarry
authored andcommitted
tests: fix rpc test
We are using the target > running node without enabling the needed features. This patch enable features for ietf-netconf module.
1 parent 806be4c commit 367e2e5

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tests/test_data.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,13 @@
2727
class DataTest(unittest.TestCase):
2828
def setUp(self):
2929
self.ctx = Context(YANG_DIR)
30-
self.ctx.load_module("ietf-netconf")
31-
mod = self.ctx.load_module("yolo-system")
32-
mod.feature_enable_all()
30+
modules = [
31+
self.ctx.load_module("ietf-netconf"),
32+
self.ctx.load_module("yolo-system"),
33+
]
34+
35+
for mod in modules:
36+
mod.feature_enable_all()
3337

3438
def tearDown(self):
3539
self.ctx.destroy()

0 commit comments

Comments
 (0)