Skip to content

Commit cdb3c75

Browse files
fix test due to new behaviour of dir in Py3.11
1 parent 00048e4 commit cdb3c75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/director-v2/tests/unit/test_core_settings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222

2323
def _get_backend_type_options() -> set[str]:
24-
return {x for x in dir(S3Provider) if not x.startswith("_")}
24+
return {x.value for x in S3Provider if not x.startswith("_")}
2525

2626

2727
def test_supported_backends_did_not_change() -> None:

0 commit comments

Comments
 (0)