Skip to content

Commit 865b3a6

Browse files
fix: PAAL-206 Configure anyio to only use asyncio backend
1 parent e372d77 commit 865b3a6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

adk/tests/test_a2a_starlette.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from typing import Any
12
from unittest.mock import AsyncMock, Mock
23

34
import pytest
@@ -43,13 +44,13 @@ def test_agent_card_endpoint(self, starlette_app: Starlette, client: TestClient)
4344

4445
class TestTelemetryFilter:
4546
"""Test suite for the TelemetryFilter class."""
46-
async def create_telemetry_filter(self, app_mock):
47+
async def create_telemetry_filter(self, app_mock: AsyncMock) -> TelemetryFilter:
4748
return TelemetryFilter(
4849
app=app_mock,
4950
filtered_paths={"/.well-known/agent-card.json"}
5051
)
5152

52-
async def simulate_request(self, path):
53+
async def simulate_request(self, path: str) -> tuple[Mock, dict[str, Any], Mock]:
5354
scope = {"type": "http", "path": path}
5455
receive = Mock()
5556
send = Mock()

0 commit comments

Comments
 (0)