Lines Matching full:patch

110     with mock.patch('os.name', os_name), \
111 mock.patch.dict('sys.modules', modules_mock, clear=True), \
112 mock.patch('sys.meta_path', meta_path_mock), \
172 with mock.patch.object(Handler, '_missing_suite_name') as _missing_mocked:
221 with mock.patch(
225 mock.patch(
266 with mock.patch('psutil.Process', return_value=mock_process), \
267 mock.patch(
304 with mock.patch(
308 mock.patch('os.unlink', mock.Mock()) as mock_unlink:
309 with mock.patch('builtins.open', mock.mock_open(read_data='1')):
321 with mock.patch('builtins.open', mock.mock_open(read_data='-1')):
427 with mock.patch(
431 mock.patch('time.time', side_effect=faux_timer.time):
523 with mock.patch('os.environ', env):
632 with mock.patch('subprocess.call', call_mock), \
633 mock.patch('subprocess.Popen', popen_mock), \
634 mock.patch('threading.Thread', thread_mock), \
635 mock.patch('sys.stdout.isatty', return_value=isatty):
757 with mock.patch('builtins.open', mock.mock_open(read_data='')):
927 with mock.patch('subprocess.Popen', side_effect=assert_popen):
978 with mock.patch.object(
1218 with mock.patch('serial.Serial', serial_mock), \
1272 with mock.patch('subprocess.Popen', popen_mock), \
1273 mock.patch('pty.openpty', openpty_mock), \
1274 mock.patch('os.ttyname', ttyname_mock):
1399 with mock.patch('builtins.open', mock.mock_open(read_data='')), \
1400 mock.patch('subprocess.Popen', side_effect=mock_popen), \
1401 mock.patch('threading.Event', mock.Mock()), \
1402 mock.patch('threading.Thread', side_effect=mock_thread):
1471 with mock.patch('psutil.Process', mock_process):
1513 with mock.patch('domains.Domains.from_file', from_file_mock):
1553 with mock.patch('os.unlink', unlink_mock), \
1554 mock.patch('os.path.exists', exists_mock):
1707 with mock.patch('os.unlink', unlink_mock), \
1708 mock.patch('os.mkfifo', mkfifo_mock), \
1709 mock.patch('os.path.exists', exists_mock), \
1710 mock.patch('builtins.open', mock.mock_open()) as open_mock:
1756 with mock.patch('os.unlink', unlink_mock), \
1757 mock.patch('os.kill', kill_mock):
1946 with mock.patch('time.time', side_effect=faux_timer.time), \
1947 mock.patch('builtins.open', new=mocked_open), \
1948 mock.patch('select.poll', return_value=p), \
1949 mock.patch('os.path.exists', return_value=True), \
1950 mock.patch('twisterlib.handlers.QEMUHandler._get_cpu_time',
1952 mock.patch('twisterlib.handlers.QEMUHandler._thread_get_fifo_names',
1954 mock.patch('twisterlib.handlers.QEMUHandler._thread_open_files',
1956 mock.patch('twisterlib.handlers.QEMUHandler._thread_close_files',
1958 mock.patch('twisterlib.handlers.QEMUHandler.' \
2056 with mock.patch('subprocess.Popen', side_effect=mock_popen), \
2057 mock.patch('builtins.open', mock.mock_open(read_data='1')), \
2058 mock.patch('threading.Thread', side_effect=mock_thread), \
2059 mock.patch('os.path.exists', side_effect=mock_path_exists), \
2060 mock.patch('os.unlink', unlink_mock), \
2061 mock.patch('sys.stdout.isatty', return_value=isatty):