Skip to content

Commit 0a44f2d

Browse files
committed
Fix test error message for get
1 parent 3b9f8c1 commit 0a44f2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1567,8 +1567,8 @@ def test_camelCase_access_raises_attribute_error() -> None:
15671567

15681568
# Test getting an attribute via camelCase alias raises AttributeError
15691569
with pytest.raises(
1570-
ValueError,
1571-
match='"AgentCard" object has no field "defaultInputModes"',
1570+
AttributeError,
1571+
match="'AgentCard' object has no attribute 'defaultInputModes'. Did you mean: 'default_input_modes'?",
15721572
):
15731573
_ = agent_card.defaultInputModes
15741574

0 commit comments

Comments
 (0)