Lines Matching full:patch
30 ffx_patcher = mock.patch('common.run_ffx_command',
32 sdk_hash_patcher = mock.patch('flash_device.get_sdk_hash',
35 swarming_patcher = mock.patch('flash_device.running_unattended',
37 time_sleep = mock.patch('time.sleep')
62 with mock.patch('os.path.exists', return_value=False), \
63 mock.patch('flash_device.find_image_in_sdk'), \
64 mock.patch('flash_device._get_system_info'), \
72 with mock.patch('os.path.exists', return_value=False), \
73 mock.patch('flash_device.find_image_in_sdk') as mock_find, \
74 mock.patch('flash_device._get_system_info'), \
75 mock.patch('common.SDK_ROOT', 'path/to/sdk/dir'), \
86 with mock.patch('os.path.exists', return_value=False), \
87 mock.patch('flash_device.find_image_in_sdk',
89 mock.patch('common.SDK_ROOT', 'path/to/sdk/dir'), \
110 with mock.patch('os.path.exists', return_value=True):
122 with mock.patch('os.path.exists', return_value=True), \
123 mock.patch('flash_device.boot_device') as mock_boot, \
124 mock.patch('flash_device.get_system_info') as mock_sys_info, \
125 mock.patch('flash_device.subprocess.run'):
149 with mock.patch('os.path.exists', return_value=True), \
150 mock.patch('flash_device.boot_device') as mock_boot, \
151 mock.patch('flash_device.subprocess.run'):
168 with mock.patch('os.path.exists', return_value=True):
179 with mock.patch('time.sleep'), \
180 mock.patch('os.path.exists', return_value=True), \
181 mock.patch('flash_device.boot_device') as mock_boot:
195 with mock.patch('time.sleep'), \
196 mock.patch('os.path.exists', return_value=True), \
197 mock.patch('flash_device.running_unattended',
199 mock.patch('flash_device.boot_device'):
207 with mock.patch('time.sleep'), \
208 mock.patch('os.path.exists', return_value=True), \
209 mock.patch('flash_device.running_unattended',
211 mock.patch('flash_device.boot_device') as mock_boot, \
212 mock.patch('flash_device.pave') as mock_pave:
230 with mock.patch('time.sleep'), \
231 mock.patch('flash_device.pave'), \
232 mock.patch('os.path.exists', return_value=True):
244 with mock.patch('time.sleep'), \
245 mock.patch('os.path.exists', return_value=True), \
246 mock.patch('flash_device.boot_device') as mock_boot, \
247 mock.patch('subprocess.run'):
261 with mock.patch('time.sleep'), \
262 mock.patch('os.path.exists', return_value=True), \
263 mock.patch('flash_device.running_unattended',
265 mock.patch('flash_device.pave') as mock_pave, \
266 mock.patch('flash_device.boot_device'), \
267 mock.patch('flash_device.flash') as mock_flash:
286 with mock.patch(
289 with mock.patch.dict(os.environ, {}):