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

Method fail

tests/test_open_telemetry.py:1167–1168  ·  view source on GitHub ↗
(*_args: object)

Source from the content-addressed store, hash-verified

1165 respx_mock.post("/v1/messages").mock(return_value=httpx2.Response(200, json=MESSAGE, headers=RESPONSE_HEADERS))
1166
1167 def fail(*_args: object) -> None:
1168 raise RuntimeError("cannot record")
1169
1170 monkeypatch.setattr("anthropic.lib._tracing._api_call.record_messages_create", fail)
1171

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected