MCPcopy
hub / github.com/openai/swarm / mock_openai_client

Function mock_openai_client

tests/test_core.py:11–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9
10@pytest.fixture
11def mock_openai_client():
12 m = MockOpenAIClient()
13 m.set_response(
14 create_mock_response({"role": "assistant", "content": DEFAULT_RESPONSE_CONTENT})
15 )
16 return m
17
18
19def test_run_with_simple_message(mock_openai_client: MockOpenAIClient):

Callers

nothing calls this directly

Calls 3

set_responseMethod · 0.95
MockOpenAIClientClass · 0.90
create_mock_responseFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…