File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ async def test_install_busybox():
221
221
222
222
with patch ("os.path.isfile" , return_value = False ):
223
223
with patch ("shutil.which" , return_value = "/usr/bin/busybox" ):
224
- with patch ("asyncio.create_subprocess_exec" , return_value = mock_process ) as create_subprocess_mock :
224
+ with asyncio_patch ("asyncio.create_subprocess_exec" , return_value = mock_process ) as create_subprocess_mock :
225
225
with patch ("shutil.copy2" ) as copy2_mock :
226
226
await Docker .install_busybox ()
227
227
create_subprocess_mock .assert_called_with (
@@ -242,7 +242,7 @@ async def test_install_busybox_dynamic_linked():
242
242
243
243
with patch ("os.path.isfile" , return_value = False ):
244
244
with patch ("shutil.which" , return_value = "/usr/bin/busybox" ):
245
- with patch ("asyncio.create_subprocess_exec" , return_value = mock_process ):
245
+ with asyncio_patch ("asyncio.create_subprocess_exec" , return_value = mock_process ):
246
246
with pytest .raises (DockerError ) as e :
247
247
await Docker .install_busybox ()
248
248
assert str (e .value ) == "No busybox executable could be found"
You can’t perform that action at this time.
0 commit comments