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

Function fake_factory

tests/lib/tools/test_session_runner.py:57–59  ·  view source on GitHub ↗
(client: Any, environment_key: str | None)

Source from the content-addressed store, hash-verified

55 calls: list[dict[str, Any]] = []
56
57 def fake_factory(client: Any, environment_key: str | None) -> Any:
58 calls.append({"environment_key": environment_key})
59 return client
60
61 monkeypatch.setattr(session_runner_mod, "_scoped_client", fake_factory)
62 return calls

Callers

nothing calls this directly

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected