We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05abcb6 commit 2013732Copy full SHA for 2013732
dist/pythonlibs/riotctrl_ctrl/tests/test_native.py
@@ -6,6 +6,8 @@
6
7
import os.path
8
9
+import riotctrl.ctrl
10
+
11
import riotctrl_ctrl.native
12
13
@@ -29,3 +31,15 @@ def test_reset():
29
31
ctrl.reset()
30
32
ctrl.term.expect_exact('!! REBOOT !!')
33
ctrl.term.expect_exact('Hello World!')
34
35
36
+def test_w_factory():
37
+ env = {'BOARD': 'native'}
38
+ factory = riotctrl.ctrl.RIOTCtrlBoardFactory(
39
+ board_cls={'native': riotctrl_ctrl.native.NativeRIOTCtrl}
40
+ )
41
+ assert 'native' in factory.board_cls
42
+ ctrl = factory.get_ctrl(env=env)
43
+ # pylint: disable=unidiomatic-typecheck
44
+ # in this case we want to know the exact type
45
+ assert type(ctrl) is riotctrl_ctrl.native.NativeRIOTCtrl
0 commit comments