Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/client/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
4 changes: 2 additions & 2 deletions tests/server/apps/jsonrpc/test_serialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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()

Expand Down
Loading