MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / spy

Function spy

tests/lib/tools/toolsets/test_security.py:141–143  ·  view source on GitHub ↗
(path: str)

Source from the content-addressed store, hash-verified

139 real_realpath_lenient = _security.realpath_lenient
140
141 def spy(path: str) -> Path:
142 resolved.append(path)
143 return real_realpath_lenient(path)
144
145 monkeypatch.setattr(_security, "realpath_lenient", spy)
146 with pytest.raises(ToolError, match="outside the configured upload roots"):

Callers

nothing calls this directly

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected