MCPcopy Index your code
hub / github.com/google/adk-python / test_app

Function test_app

tests/unittests/cli/test_fast_api.py:683–699  ·  view source on GitHub ↗

Create a TestClient for the FastAPI app without starting a server.

(
    mock_session_service,
    mock_artifact_service,
    mock_memory_service,
    mock_agent_loader,
    mock_eval_sets_manager,
    mock_eval_set_results_manager,
)

Source from the content-addressed store, hash-verified

681
682@pytest.fixture
683def test_app(
684 mock_session_service,
685 mock_artifact_service,
686 mock_memory_service,
687 mock_agent_loader,
688 mock_eval_sets_manager,
689 mock_eval_set_results_manager,
690):
691 """Create a TestClient for the FastAPI app without starting a server."""
692 return _create_test_client(
693 mock_session_service,
694 mock_artifact_service,
695 mock_memory_service,
696 mock_agent_loader,
697 mock_eval_sets_manager,
698 mock_eval_set_results_manager,
699 )
700
701
702@pytest.fixture

Callers

nothing calls this directly

Calls 1

_create_test_clientFunction · 0.85

Tested by

no test coverage detected