File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments