diff --git a/tests/client/test_client.py b/tests/client/test_client.py index 84283f92..547fbe10 100644 --- a/tests/client/test_client.py +++ b/tests/client/test_client.py @@ -165,13 +165,13 @@ async def test_init_strips_slashes(self, mock_httpx_client: AsyncMock): resolver = A2ACardResolver( httpx_client=mock_httpx_client, base_url='http://example.com/', # With trailing slash - agent_card_path='/.well-known/agent.json/', # With leading/trailing slash + agent_card_path='/.well-known/agent-card.json/', # With leading/trailing slash ) assert ( resolver.base_url == 'http://example.com' ) # Trailing slash stripped # constructor lstrips agent_card_path, but keeps trailing if provided - assert resolver.agent_card_path == '.well-known/agent.json/' + assert resolver.agent_card_path == '.well-known/agent-card.json/' @pytest.mark.asyncio async def test_get_agent_card_success_public_only( diff --git a/tests/server/apps/jsonrpc/test_serialization.py b/tests/server/apps/jsonrpc/test_serialization.py index 0b88730a..663de5e0 100644 --- a/tests/server/apps/jsonrpc/test_serialization.py +++ b/tests/server/apps/jsonrpc/test_serialization.py @@ -58,7 +58,7 @@ def test_starlette_agent_card_with_api_key_scheme_alias( app_instance = A2AStarletteApplication(agent_card_with_api_key, handler) client = TestClient(app_instance.build()) - response = client.get('/.well-known/agent.json') + response = client.get('/.well-known/agent-card.json') assert response.status_code == 200 response_data = response.json() @@ -90,7 +90,7 @@ def test_fastapi_agent_card_with_api_key_scheme_alias( app_instance = A2AFastAPIApplication(agent_card_with_api_key, handler) client = TestClient(app_instance.build()) - response = client.get('/.well-known/agent.json') + response = client.get('/.well-known/agent-card.json') assert response.status_code == 200 response_data = response.json()