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

Method refuse

tests/test_open_telemetry.py:8171–8176  ·  view source on GitHub ↗
(name: str)

Source from the content-addressed store, hash-verified

8169 await close_what_earlier_tests_left_suspended()
8170
8171 def refuse(name: str) -> Callable[..., Any]:
8172 def function(*_args: object, **_kwargs: object) -> Any:
8173 called_names.append(name)
8174 raise AssertionError(f"`opentelemetry.trace.{name}` was called")
8175
8176 return function
8177
8178 for name in ("get_tracer_provider", "get_tracer", "get_current_span", "use_span", "set_span_in_context"):
8179 monkeypatch.setattr(trace, name, refuse(name))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected