Lines Matching full:patch
169 with mock.patch('sys.argv', ['twister'] + args):
177 with mock.patch('os.name', os_name) \
179 mock.patch('shutil.which', which_mock) \
181 mock.patch('twisterlib.environment' \
196 with mock.patch('sys.argv', ['twister'] + args):
205 with mock.patch('twisterlib.size_calc.SizeCalculator', mock_calc):
218 with mock.patch('sys.argv', ['twister'] + args):
221 with mock.patch('twisterlib.environment.PYTEST_PLUGIN_INSTALLED', True):
243 with mock.patch('sys.argv', ['twister'] + args):
325 with mock.patch('os.path.abspath', side_effect=mocked_abspath):
352 with mock.patch('os.path.abspath', side_effect=mocked_abspath):
363 with mock.patch.object(
367 mock.patch.object(
371 mock.patch('twisterlib.environment.datetime', mock_datetime):
456 with mock.patch('os.path.abspath', side_effect=mocked_abspath):
459 with mock.patch('subprocess.run', mock.Mock(side_effect=mock_run)):
531 with mock.patch('shutil.which', mock_which), \
532 mock.patch('subprocess.Popen', mock.Mock(side_effect=mock_popen)), \
584 with mock.patch('os.path.abspath', side_effect=mocked_abspath):
587 with mock.patch.object(