Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Rip&Tear
2026-06-20 11:11:37 +08:00
committed by GitHub
parent 4877828264
commit 5c9436d368

View File

@@ -113,7 +113,7 @@ class TestValidateDirectoryPath:
validate_directory_path("file.txt", str(tmp_path))
def test_rejects_traversal(self, tmp_path):
with pytest.raises(ValueError, match="outside the allowed director"):
with pytest.raises(ValueError, match="outside the allowed directories"):
validate_directory_path("../../", str(tmp_path))