The async client has good coverage now (TestAsyncResources, TestAsyncCompletionsParams, async retry/context-manager tests), but two async paths still have no tests:
AsyncCompletions.create(stream=True) — async streaming (sync streaming is covered by TestStreamingErrorHandling; async is not).
AsyncEmbeddings.create() — no async embeddings test (TestEmbeddings is sync only).
What to do
Add pytest-asyncio + pytest-httpx tests for both, mirroring their sync counterparts (TestChatCompletions.test_streaming_returns_iterator and TestEmbeddings.test_create).
The async client has good coverage now (
TestAsyncResources,TestAsyncCompletionsParams, async retry/context-manager tests), but two async paths still have no tests:AsyncCompletions.create(stream=True)— async streaming (sync streaming is covered byTestStreamingErrorHandling; async is not).AsyncEmbeddings.create()— no async embeddings test (TestEmbeddingsis sync only).What to do
Add
pytest-asyncio+pytest-httpxtests for both, mirroring their sync counterparts (TestChatCompletions.test_streaming_returns_iteratorandTestEmbeddings.test_create).