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

Function test_resolve_path

tests/lib/tools/test_agent_toolset.py:49–55  ·  view source on GitHub ↗
(tmp_path: Path, description: str, p: str, expect_error: bool)

Source from the content-addressed store, hash-verified

47 ],
48)
49def test_resolve_path(tmp_path: Path, description: str, p: str, expect_error: bool) -> None:
50 env = AgentToolContext(workdir=str(tmp_path))
51 if expect_error:
52 with pytest.raises(ValueError):
53 resolve_path(env, p)
54 else:
55 assert resolve_path(env, p), description
56
57
58@pytest.mark.parametrize("value", [True, False])

Callers

nothing calls this directly

Calls 2

AgentToolContextClass · 0.90
resolve_pathFunction · 0.90

Tested by

no test coverage detected