From 74f5c8f1eafdec7baaae896110d5c61eb35417ca Mon Sep 17 00:00:00 2001 From: Hagen Wierstorf Date: Tue, 22 Oct 2024 11:23:30 +0200 Subject: [PATCH] Try to fix Windows owner test --- tests/conftest.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/conftest.py b/tests/conftest.py index 9598f5c4..0d87dc05 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -77,6 +77,13 @@ def owner(request): ): host_wo_https = pytest.HOSTS["artifactory"][8:] owner = backend_cls.get_authentication(host_wo_https)[0] + elif ( + hasattr(audbackend.backend, "Minio") and backend_cls == audbackend.backend.Minio + ): + if os.name == "nt": + owner = "runneradmin" + else: + owner = getpass.getuser() else: if os.name == "nt": owner = "Administrators"