Create a test client.
(app, mock_azure_credential, mock_openai_embedding, mock_openai_chatcompletion)
| 352 | |
| 353 | @pytest_asyncio.fixture(scope="function") |
| 354 | async def test_client(app, mock_azure_credential, mock_openai_embedding, mock_openai_chatcompletion): |
| 355 | """Create a test client.""" |
| 356 | with TestClient(app) as test_client: |
| 357 | yield test_client |
| 358 | |
| 359 | |
| 360 | @pytest_asyncio.fixture(scope="function") |
nothing calls this directly
no outgoing calls
no test coverage detected