Lines Matching refs:mcumgr
9 from twister_harness.helpers.mcumgr import MCUmgr, MCUmgrException
19 patched_run_command: mock.Mock, mcumgr: MCUmgr
21 mcumgr.reset_device()
24 mcumgr.get_image_list()
27 mcumgr.image_upload('/path/to/image', timeout=100)
30 mcumgr.image_upload('/path/to/image', slot=2, timeout=100)
33 mcumgr.image_test(hash='ABCD')
36 mcumgr.image_confirm(hash='ABCD')
40 def test_if_mcumgr_fixture_raises_exception_when_no_hash_to_test(mcumgr: MCUmgr) -> None:
50 mcumgr.run_command = mock.Mock(return_value=cmd_output)
52 mcumgr.image_test()
55 def test_if_mcumgr_fixture_parse_image_list(mcumgr: MCUmgr) -> None:
70 mcumgr.run_command = mock.Mock(return_value=cmd_output)
71 image_list = mcumgr.get_image_list()
84 mcumgr.image_test()
85 mcumgr.run_command.assert_called_with('image test 1111')
88 mcumgr.image_confirm()
89 mcumgr.run_command.assert_called_with('image confirm 1111')