Skip to content

Commit b9b52ea

Browse files
committed
Fix test edited by Jules
1 parent 6b3e936 commit b9b52ea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/client/test_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ async def test_get_client_from_agent_card_url_success(
389389
self, mock_httpx_client: AsyncMock, mock_agent_card: MagicMock
390390
):
391391
base_url = 'http://example.com'
392-
custom_agent_card_path = '/custom/path/agent.json' # Non-default path
392+
agent_card_path = '/.well-known/custom-agent.json'
393393
resolver_kwargs = {'timeout': 30}
394394

395395
mock_resolver_instance = AsyncMock(spec=A2ACardResolver)
@@ -402,14 +402,14 @@ async def test_get_client_from_agent_card_url_success(
402402
client = await A2AClient.get_client_from_agent_card_url(
403403
httpx_client=mock_httpx_client,
404404
base_url=base_url,
405-
agent_card_path=custom_agent_card_path, # Use the custom path
405+
agent_card_path=agent_card_path,
406406
http_kwargs=resolver_kwargs,
407407
)
408408

409409
mock_resolver_class.assert_called_once_with(
410410
mock_httpx_client,
411411
base_url=base_url,
412-
agent_card_path=custom_agent_card_path, # Verify custom path is passed
412+
agent_card_path=agent_card_path,
413413
)
414414
mock_resolver_instance.get_agent_card.assert_called_once_with(
415415
http_kwargs=resolver_kwargs,

0 commit comments

Comments
 (0)