Lines Matching full:mock
8 from unittest import mock
32 @mock.patch('shutil.which', return_value=None)
38 @mock.patch('shutil.which', return_value='west')
46 @mock.patch('shutil.which', return_value='west')
57 @mock.patch('shutil.which', return_value='west')
68 @mock.patch('shutil.which', return_value='west')
81 @mock.patch('shutil.which', return_value='west')
94 @mock.patch('shutil.which', return_value='west')
106 @mock.patch('shutil.which', return_value='west')
118 @mock.patch('shutil.which', return_value='west')
131 @mock.patch('shutil.which', return_value='west')
143 @mock.patch('shutil.which', return_value='west')
168 @mock.patch('shutil.which', return_value='west')
191 @mock.patch('twister_harness.device.hardware_adapter.subprocess.Popen')
193 popen_mock = mock.Mock()
208 @mock.patch('twister_harness.device.hardware_adapter.subprocess.Popen')
209 @mock.patch('twister_harness.device.hardware_adapter.serial.Serial')
215 popen_mock = mock.Mock()
222 serial_mock = mock.Mock()
248 device.command = ['echo', 'TEST'] # only to mock flashing command