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

Method refuse

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected