Home
last modified time | relevance | path

Searched refs:Mock (Results 1 – 18 of 18) sorted by relevance

/Zephyr-latest/scripts/tests/twister/
Dtest_handlers.py43 instance = mock.Mock()
45 testsuite = mock.Mock()
53 platform = mock.Mock()
128 instance.testcases = [mock.Mock()]
130 handler = Handler(mocked_instance, 'build', mock.Mock())
135 harness.detected_suite_names = mock.Mock()
138 harness.recording = mock.Mock()
140 handler_time = mock.Mock()
179 handler_time = mock.Mock()
182 handler = Handler(instance, 'build', mock.Mock())
[all …]
Dtest_testplan.py406 testplan = TestPlan(env=mock.Mock())
407 lvl1 = mock.Mock()
409 lvl2 = mock.Mock()
411 lvl3 = mock.Mock()
425 lvl_missed = mock.Mock()
466 testplan = TestPlan(env=mock.Mock())
499 testplan = TestPlan(env=mock.Mock())
500 testplan.options = mock.Mock(sub_test=sub_tests)
503 'ts1': mock.Mock(
505 mock.Mock(),
[all …]
Dtest_environment.py175 which_mock = mock.Mock(side_effect=mock_which)
199 mock_calc_parent = mock.Mock()
200 mock_calc_parent.child = mock.Mock(return_value=mock.Mock())
262 mock.Mock(
271 mock.Mock(
283 mock.Mock(
292 mock.Mock(
320 elif isinstance(path, mock.Mock):
338 options = mock.Mock(
347 elif isinstance(path, mock.Mock):
[all …]
Dtest_jobserver.py78 proc_mock = mock.Mock()
79 popen_mock = mock.Mock(return_value=proc_mock)
104 inherit_read_fd = mock.Mock()
105 inherit_write_fd = mock.Mock()
109 internal_read_fd = mock.Mock()
110 internal_write_fd = mock.Mock()
115 close_mock = mock.Mock()
116 write_mock = mock.Mock()
117 set_blocking_mock = mock.Mock()
118 selector_mock = mock.Mock()
[all …]
Dtest_runner.py41 instance = mock.Mock()
42 testsuite = mock.Mock()
45 platform = mock.Mock()
57 env = mock.Mock()
58 options = mock.Mock()
66 jobserver = mock.Mock()
245 testsuite_mock = mock.Mock()
246 platform_mock = mock.Mock()
297 process_mock = mock.Mock(
299 communicate=mock.Mock(
[all …]
Dtest_scl.py53 cloader_mock = mock.Mock()
54 loader_mock = mock.Mock()
55 csafeloader_mock = mock.Mock()
56 safeloader_mock = mock.Mock()
57 cdumper_mock = mock.Mock()
58 dumper_mock = mock.Mock()
123 assert scl._yaml_validate(mock.Mock(), mock.Mock()) is None
139 result_mock = mock.Mock()
143 context_mark = mock.Mock()
144 problem_mark = mock.Mock()
[all …]
Dtest_hardwaremap.py34 hm = HardwareMap(env=mock.Mock())
167 mocked_hm.scan = mock.Mock()
168 mocked_hm.save = mock.Mock()
169 mocked_hm.load = mock.Mock(side_effect=mock_load)
170 mocked_hm.dump = mock.Mock()
171 mocked_hm.add_device = mock.Mock()
181 mocked_hm.options.persistent_hardware_map = mock.Mock()
251 hm = HardwareMap(env=mock.Mock())
303 hm = HardwareMap(env=mock.Mock())
406 mock.Mock(
[all …]
Dtest_harness.py198 mock_platform = mock.Mock()
202 mock_testsuite = mock.Mock(id="id", testcases=[])
229 mock_platform = mock.Mock()
233 mock_testsuite = mock.Mock(id="id", testcases=[])
272 handler = mock.Mock()
279 mock_platform = mock.Mock()
283 mock_testsuite = mock.Mock(id="id", testcases=[mock.Mock()])
301 proc_mock = mock.Mock(
302 returncode=returncode, communicate=mock.Mock(return_value=(b"output", None))
304 popen_mock = mock.Mock(
[all …]
Dtest_testinstance.py72 env = mock.Mock(
73 options=mock.Mock(
241 testinstance.testcases = [mock.Mock()]
251 mock.Mock()
255 mock.Mock()
483 testinstance.handler = mock.Mock() if preexisting_handler else None
486 env = mock.Mock(
487 options=mock.Mock(
525 …mock.ANY, 'not runnable', ['?'], mock.Mock(duts=[mock.Mock(platform='demo_board_2', fixtures=[])])…
556 env = mock.Mock(
[all …]
Dtest_testsuite.py264 with mock.patch('mmap.mmap', mock.Mock(side_effect=assert_mmap)), \
386 mock.Mock(
387 start=mock.Mock(return_value=0),
388 end=mock.Mock(return_value=0)
397 mock.Mock(
398 start=mock.Mock(return_value=0),
399 end=mock.Mock(return_value=26)
408 mock.Mock(
409 start=mock.Mock(return_value=0),
410 end=mock.Mock(return_value=0)
[all …]
/Zephyr-latest/scripts/build/
Dcheck_init_priorities_test.py60 mock_elf = mock.Mock()
62 sts = mock.Mock(spec=SymbolTableSection)
63 rel = mock.Mock(spec=Section)
66 s0 = mock.Mock()
73 s1 = mock.Mock()
76 s2 = mock.Mock()
93 mock_elf = mock.Mock()
95 sts = mock.Mock(spec=SymbolTableSection)
96 rel = mock.Mock(spec=Section)
99 s0 = mock.Mock()
[all …]
/Zephyr-latest/scripts/pylib/pytest-twister-harness/tests/fixtures/
Dmcumgr_fixture_test.py19 patched_run_command: mock.Mock, mcumgr: MCUmgr argument
50 mcumgr.run_command = mock.Mock(return_value=cmd_output)
70 mcumgr.run_command = mock.Mock(return_value=cmd_output)
/Zephyr-latest/scripts/tests/twister_blackbox/
Dtest_hardwaremap.py121 mock.Mock(device='/dev/ttyUSB23',
173 mock.Mock(device='/dev/ttyUSB23',
178 mock.Mock(device='/dev/ttyUSB24',
183 mock.Mock(device='/dev/ttyUSB24',
188 mock.Mock(device='/dev/ttyUSB25',
254 mock.Mock(device='/dev/ttyUSB23',
/Zephyr-latest/tests/subsys/mgmt/ec_host_cmd/uart/
DKconfig6 bool "Mock UART async driver"
/Zephyr-latest/scripts/pylib/pytest-twister-harness/tests/device/
Dhardware_adapter_test.py193 popen_mock = mock.Mock()
215 popen_mock = mock.Mock()
222 serial_mock = mock.Mock()
/Zephyr-latest/samples/subsys/zbus/remote_mock/
DREADME.rst37 D: [Mock Proxy] Started.
38 D: [Mock Proxy RX] Started.
39 D: [Mock Proxy RX] Found sentence
/Zephyr-latest/scripts/tests/twister/pytest_integration/
Dtest_harness_pytest.py26 testinstance.handler = mock.Mock()
27 testinstance.handler.options = mock.Mock()
/Zephyr-latest/scripts/tests/build_helpers/
Dtest_domains.py45 init_mock = mock.Mock(return_value=None)