Home
last modified time | relevance | path

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

/Zephyr-Core-3.7.0/scripts/tests/twister/
Dtest_handlers.py221 mock_process = mock.Mock()
224 mock_process.children = mock.Mock(return_value=[mock_child1, mock_child2])
230 with mock.patch('psutil.Process', return_value=mock_process), \
245 mock_process.children = mock.Mock(
868 def test_devicehandler_run_custom_script(caplog, mock_process, raise_timeout): argument
877 __enter__=mock.Mock(return_value=mock_process),
881 mock_process.communicate = mock.Mock(side_effect=raise_timeout_fn)
893 mock_process.assert_has_calls(
900 elif mock_process.returncode == 0:
1315 mock_process = mock.Mock(
[all …]