MCPcopy Create free account
hub / github.com/Azure-Samples/rag-postgres-openai-python / test_client

Function test_client

tests/conftest.py:354–357  ·  view source on GitHub ↗

Create a test client.

(app, mock_azure_credential, mock_openai_embedding, mock_openai_chatcompletion)

Source from the content-addressed store, hash-verified

352
353@pytest_asyncio.fixture(scope="function")
354async 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")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected