MCPcopy Create free account
hub / github.com/openai/openai-python / test_parse_method_in_sync

Function test_parse_method_in_sync

tests/api_resources/test_responses.py:426–433  ·  view source on GitHub ↗
(sync: bool, client: OpenAI, async_client: AsyncOpenAI)

Source from the content-addressed store, hash-verified

424
425@pytest.mark.parametrize("sync", [True, False], ids=["sync", "async"])
426def test_parse_method_in_sync(sync: bool, client: OpenAI, async_client: AsyncOpenAI) -> None:
427 checking_client: OpenAI | AsyncOpenAI = client if sync else async_client
428
429 assert_signatures_in_sync(
430 checking_client.responses.create,
431 checking_client.responses.parse,
432 exclude_params={"stream", "tools"},
433 )
434
435
436class TestAsyncResponses:

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected