fixup! Use a Runtime class to get information about container runtimes

This commit is contained in:
Alexis Métaireau 2025-03-25 12:34:37 +01:00
parent cc94c8ef5b
commit 006e6e292e

View file

@ -41,4 +41,8 @@ def test_get_runtime_name_non_linux(mocker: MockerFixture, tmp_path: Path) -> No
assert runtime.path == Path("/usr/bin/docker")
mocker.patch("platform.system", return_value="Something else")
runtime = Runtime()
assert runtime.name == "docker"
assert runtime.path == Path("/usr/bin/docker")
assert Runtime().name == "docker"