diff --git a/backend/tests/test_tools_local.py b/backend/tests/test_tools_local.py index 0e4295a..e8ea219 100644 --- a/backend/tests/test_tools_local.py +++ b/backend/tests/test_tools_local.py @@ -76,7 +76,7 @@ def test_blocked_system_path(self, monkeypatch): path = Path("/etc", "passwd") resolved, error = _validate_path(path) assert error is not None - assert "outside workspace" in error + assert "outside workspace" in error or "protected system directory" in error def test_blocked_root_path(self, monkeypatch): monkeypatch.setattr("openmlr.tools.local.WORKSPACE_ROOT", "/home/user/projects")