Fix tests after updating error message when busybox is not installed.

This commit is contained in:
grossmj 2024-04-23 18:00:37 +07:00
parent 448b94f701
commit 2609849507
No known key found for this signature in database
GPG Key ID: 0A2D76AC45EA25CD

View File

@ -238,7 +238,7 @@ async def test_install_busybox_dynamic_linked():
with pytest.raises(DockerError) as e:
dst_dir = Docker.resources_path()
await Docker.install_busybox(dst_dir)
assert str(e.value) == "No busybox executable could be found"
assert str(e.value) == "No busybox executable could be found, please install busybox (apt install busybox-static on Debian/Ubuntu) and make sure it is in your PATH"
@pytest.mark.asyncio
@ -249,4 +249,4 @@ async def test_install_busybox_no_executables():
with pytest.raises(DockerError) as e:
dst_dir = Docker.resources_path()
await Docker.install_busybox(dst_dir)
assert str(e.value) == "No busybox executable could be found"
assert str(e.value) == "No busybox executable could be found, please install busybox (apt install busybox-static on Debian/Ubuntu) and make sure it is in your PATH"