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

Class _FakeClient

tests/lib/tools/test_session_runner.py:268–277  ·  view source on GitHub ↗

Minimal stand-in for ``AsyncAnthropic`` — only exposes the resource path the runner reads.

Source from the content-addressed store, hash-verified

266
267
268class _FakeClient:
269 """Minimal stand-in for ``AsyncAnthropic`` — only exposes the resource path
270 the runner reads."""
271
272 def __init__(self, events: FakeAsyncEvents) -> None:
273 self.beta = type(
274 "_Beta",
275 (),
276 {"sessions": type("_Sessions", (), {"events": events})()},
277 )()
278
279
280async def _run_with_fakes(

Callers 3

_run_with_fakesFunction · 0.85
consumeFunction · 0.85

Calls

no outgoing calls

Tested by 3

_run_with_fakesFunction · 0.68
consumeFunction · 0.68