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

Method fail

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

Source from the content-addressed store, hash-verified

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

Callers 3

_drain_oneFunction · 0.45
_adrain_oneFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected