More TOCTOU, update to tests for jinjaturtle
Some checks failed
CI / test (push) Successful in 48s
CI / test (almalinux, docker.io/library/almalinux:9, python3.11) (push) Failing after 2m32s
CI / test (debian, docker.io/library/debian:13, python3) (push) Failing after 3m0s
Lint / test (push) Successful in 44s

This commit is contained in:
Miguel Jacq 2026-06-29 14:30:07 +10:00
parent 56ae883948
commit 3c1e08bdde
Signed by: mig5
GPG key ID: 03906B4110AAD3B8
9 changed files with 116 additions and 17 deletions

View file

@ -39,8 +39,12 @@ def test_deny_reason_dir_behaviour(tmp_path: Path):
link = tmp_path / "link"
link.symlink_to(d)
parent_link = tmp_path / "parent_link"
parent_link.symlink_to(tmp_path, target_is_directory=True)
assert pol.deny_reason_dir(str(d)) is None
assert pol.deny_reason_dir(str(link)) == "symlink"
assert pol.deny_reason_dir(str(parent_link / "dir")) == "symlink"
assert pol.deny_reason_dir(str(f)) == "not_directory"
# Denied by glob.