mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-05-05 13:11:49 +02:00
fixup! Use a Runtime
class to get information about container runtimes
This commit is contained in:
parent
cc94c8ef5b
commit
006e6e292e
1 changed files with 4 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue