Lines Matching full:patch
153 with mock.patch('sys.argv', ['twister'] + args):
161 with mock.patch('os.name', os_name) \
163 mock.patch('shutil.which', which_mock) \
165 mock.patch('twisterlib.environment' \
180 with mock.patch('sys.argv', ['twister'] + args):
189 with mock.patch('twisterlib.size_calc.SizeCalculator', mock_calc):
202 with mock.patch('sys.argv', ['twister'] + args):
205 with mock.patch('twisterlib.environment.PYTEST_PLUGIN_INSTALLED', True):
227 with mock.patch('sys.argv', ['twister'] + args):
308 with mock.patch(
329 with mock.patch('os.path.abspath', abspath_mock):
340 with mock.patch.object(
344 mock.patch.object(
348 mock.patch('twisterlib.environment.datetime', mock_datetime):
425 with mock.patch('os.path.abspath', abspath_mock):
428 with mock.patch('subprocess.run', mock.Mock(side_effect=mock_run)):
500 with mock.patch('shutil.which', mock_which), \
501 mock.patch('subprocess.Popen', mock.Mock(side_effect=mock_popen)), \
545 with mock.patch('os.path.abspath', abspath_mock):
548 with mock.patch.object(