Lines Matching refs:mock
9 import mock
184 mock.patch.object(Harness, "parse_record", return_value=None)
198 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()])
295 open_mock = mock.mock_open()
301 proc_mock = mock.Mock(
302 returncode=returncode, communicate=mock.Mock(return_value=(b"output", None))
304 popen_mock = mock.Mock(
305 return_value=mock.Mock(
306 __enter__=mock.Mock(return_value=proc_mock), __exit__=mock.Mock()
311 with mock.patch("subprocess.Popen", popen_mock) as mock.mock_popen, mock.patch(
333 mock_platform = mock.Mock()
337 mock_testsuite = mock.Mock(id="id", testcases=[])
394 mock_platform = mock.Mock()
398 mock_testsuite = mock.Mock(id="id", testcases=[])
456 mock_platform = mock.Mock()
460 mock_testsuite = mock.Mock(id="id", testcases=[])
471 handler = mock.Mock()
474 hardware = mock.Mock()
529 mock.patch.object(Pytest, "PYTEST_PLUGIN_INSTALLED", False)
545 harness = mock.create_autospec(harness)
547 mock.patch.object(Pytest, "generate_command", return_value=cmd)
548 mock.patch.object(Pytest, "run_command")
550 mock_platform = mock.Mock()
554 mock_testsuite = mock.Mock(
560 handler = mock.Mock(options=mock.Mock(verbose=0), type_str="handler_type")
700 mock_platform = mock.Mock()
704 mock_testsuite = mock.Mock(id="dummy.test_id", testcases=[])
713 with mock.patch('twisterlib.testsuite.TestSuite.get_unique', return_value="dummy_suite"):
742 mock_platform = mock.Mock()
745 mock_testsuite = mock.Mock()
1130 mocked_instance = mock.Mock()