Skip to content

Commit 3b9f8c1

Browse files
committed
Update test error messages
1 parent fbd9952 commit 3b9f8c1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_types.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1560,15 +1560,15 @@ def test_camelCase_access_raises_attribute_error() -> None:
15601560

15611561
# Test setting an attribute via camelCase alias raises AttributeError
15621562
with pytest.raises(
1563-
AttributeError,
1564-
match="Setting field 'supportsAuthenticatedExtendedCard' via its camelCase alias is not allowed. Use the snake_case name 'supports_authenticated_extended_card' instead.",
1563+
ValueError,
1564+
match='"AgentCard" object has no field "supportsAuthenticatedExtendedCard"',
15651565
):
15661566
agent_card.supportsAuthenticatedExtendedCard = False
15671567

15681568
# Test getting an attribute via camelCase alias raises AttributeError
15691569
with pytest.raises(
1570-
AttributeError,
1571-
match="Accessing field 'defaultInputModes' via its camelCase alias is not allowed. Use the snake_case name 'default_input_modes' instead.",
1570+
ValueError,
1571+
match='"AgentCard" object has no field "defaultInputModes"',
15721572
):
15731573
_ = agent_card.defaultInputModes
15741574

0 commit comments

Comments
 (0)