From fceb1c493a5e3f81aa04019c04b4b27bee127620 Mon Sep 17 00:00:00 2001 From: Daniel Hollas Date: Wed, 24 Jan 2024 08:20:13 +0000 Subject: [PATCH] Fix test --- tests/conftest.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index 93c1cc4..308671c 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -142,8 +142,9 @@ def instance(docker_client, profile): def remove_extra_mounts(): for extra_mount in instance.profile.extra_mounts: - extra_volume, _, _ = instance.profile.parse_extra_mount(extra_mount) - docker_client.volumes.get(str(extra_volume)).remove() + extra_volume, _, _, mount_type = instance.profile.parse_extra_mount(extra_mount) + if mount_type == 'volume': + docker_client.volumes.get(str(extra_volume)).remove() for op in ( instance.stop,