use pathlib.iterdir() everywhere

This commit is contained in:
Jörg Thalheim
2025-03-18 15:34:06 +01:00
parent 89b6a84388
commit 527154070c
6 changed files with 25 additions and 27 deletions

View File

@@ -401,8 +401,8 @@ def test_groups(
),
)
groups = os.listdir(test_flake.path / "sops" / "groups")
assert len(groups) == 0
first_group = next((test_flake.path / "sops" / "groups").iterdir(), None)
assert first_group is None
# Check if the symlink to the group was removed from our foo test secret:
group_symlink = test_flake.path / "sops/secrets/foo/groups/group1"