Skip to content

Commit 2f74bc8

Browse files
committed
Update mock agent card attributes in tests
Additionally, coverage fails when test files have the same name: ./jsonrpc_test_fastapi_app.py and ./rest/test_fastapi_app.py So, the latter one was renamed to ./rest/test_rest_fastapi_app.py
1 parent af76625 commit 2f74bc8

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tests/server/apps/jsonrpc/test_fastapi_app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ def mock_app_params(self) -> dict:
3939
# Ensure 'url' attribute exists on the mock_agent_card, as it's accessed
4040
# in __init__
4141
mock_agent_card.url = 'http://example.com'
42-
# Ensure 'supports_authenticated_agent_card' attribute exists
43-
mock_agent_card.supports_authenticated_agent_card = False
42+
# Ensure 'supports_authenticated_extended_card' attribute exists
43+
mock_agent_card.supports_authenticated_extended_card = False
4444
return {'agent_card': mock_agent_card, 'http_handler': mock_handler}
4545

4646
@pytest.fixture(scope='class')

tests/server/apps/jsonrpc/test_starlette_app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ def mock_app_params(self) -> dict:
4040
# Ensure 'url' attribute exists on the mock_agent_card, as it's accessed
4141
# in __init__
4242
mock_agent_card.url = 'http://example.com'
43-
# Ensure 'supportsAuthenticatedExtendedCard' attribute exists
44-
mock_agent_card.supportsAuthenticatedExtendedCard = False
43+
# Ensure 'supports_authenticated_extended_card' attribute exists
44+
mock_agent_card.supports_authenticated_extended_card = False
4545
return {'agent_card': mock_agent_card, 'http_handler': mock_handler}
4646

4747
@pytest.fixture(scope='class')
File renamed without changes.

0 commit comments

Comments
 (0)