From 5c9436d3688cf63b2101a92f3071b1f4cb3fa883 Mon Sep 17 00:00:00 2001 From: Rip&Tear <84775494+theCyberTech@users.noreply.github.com> Date: Sat, 20 Jun 2026 11:11:37 +0800 Subject: [PATCH] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- lib/crewai-tools/tests/utilities/test_safe_path.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/crewai-tools/tests/utilities/test_safe_path.py b/lib/crewai-tools/tests/utilities/test_safe_path.py index 81363390b..1a51c9db3 100644 --- a/lib/crewai-tools/tests/utilities/test_safe_path.py +++ b/lib/crewai-tools/tests/utilities/test_safe_path.py @@ -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))