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))