Skip to content

Commit 3898b88

Browse files
committed
test(docs): update elicitation error expectation
1 parent 5ebaf73 commit 3898b88

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/docs_src/test_elicitation.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,9 @@ async def on_elicit(context: ClientRequestContext, params: ElicitRequestParams)
124124
result = await client.call_tool("book_table", {"date": "2025-12-25", "party_size": 2})
125125
assert result.is_error
126126
assert isinstance(result.content[0], TextContent)
127-
assert result.content[0].text == "An unexpected error occurred while executing tool book_table"
127+
assert result.content[0].text == (
128+
"Received an accepted elicitation whose content does not match the requested schema"
129+
)
128130

129131

130132
class Address(BaseModel):

0 commit comments

Comments
 (0)