MCPcopy
hub / github.com/openai/openai-python / load_botocore

Function load_botocore

tests/lib/test_bedrock.py:137–138  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

135@pytest.mark.respx()
136def test_env_bearer_does_not_require_botocore(monkeypatch: pytest.MonkeyPatch, respx_mock: MockRouter) -> None:
137 def load_botocore() -> None:
138 raise AssertionError("bearer authentication must not import botocore")
139
140 monkeypatch.setattr(bedrock_auth_module, "_load_botocore", load_botocore)
141 respx_mock.post("https://example.com/openai/v1/responses").mock(

Callers

nothing calls this directly

Calls 1

OpenAIErrorClass · 0.90

Tested by

no test coverage detected