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

Function test_client

tests/unittests/cli/test_adk_web_server_tests.py:30–43  ·  view source on GitHub ↗

Client with a temporary agents directory.

(tmp_path)

Source from the content-addressed store, hash-verified

28
29@pytest.fixture
30def test_client(tmp_path):
31 """Client with a temporary agents directory."""
32 app = get_fast_api_app(
33 agents_dir=str(tmp_path),
34 web=True,
35 session_service_uri="",
36 artifact_service_uri="",
37 memory_service_uri="",
38 allow_origins=["*"],
39 a2a=False,
40 host="127.0.0.1",
41 port=8000,
42 )
43 return TestClient(app)
44
45
46def test_list_tests_empty(test_client):

Callers

nothing calls this directly

Calls 1

get_fast_api_appFunction · 0.90

Tested by

no test coverage detected