From cdb3c756c9e1a2d610cd477663a48338e4a9418b Mon Sep 17 00:00:00 2001 From: Giancarlo Romeo Date: Thu, 15 Aug 2024 15:31:53 +0200 Subject: [PATCH] fix test due to new behaviour of dir in Py3.11 --- services/director-v2/tests/unit/test_core_settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/director-v2/tests/unit/test_core_settings.py b/services/director-v2/tests/unit/test_core_settings.py index 237febac3d4..29d3113d155 100644 --- a/services/director-v2/tests/unit/test_core_settings.py +++ b/services/director-v2/tests/unit/test_core_settings.py @@ -21,7 +21,7 @@ def _get_backend_type_options() -> set[str]: - return {x for x in dir(S3Provider) if not x.startswith("_")} + return {x.value for x in S3Provider if not x.startswith("_")} def test_supported_backends_did_not_change() -> None: