mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-26 23:44:17 +02:00
Update test snapshot for MCP 1.26.0 serialization change
MCP 1.26.0 now includes `meta: null` in ReadResourceContents JSON serialization. Update the test snapshot to match. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
cd0274c0da
commit
7ad97d92cd
2 changed files with 427 additions and 408 deletions
|
|
@ -489,10 +489,14 @@ class TestResourceToolMiddleware:
|
|||
[
|
||||
TextContent(
|
||||
type="text",
|
||||
text='[{"content":"debug=true","mime_type":"text/plain"}]',
|
||||
text='[{"content":"debug=true","mime_type":"text/plain","meta":null}]',
|
||||
)
|
||||
]
|
||||
)
|
||||
assert result.structured_content == snapshot(
|
||||
{"result": [{"content": "debug=true", "mime_type": "text/plain"}]}
|
||||
{
|
||||
"result": [
|
||||
{"content": "debug=true", "mime_type": "text/plain", "meta": None}
|
||||
]
|
||||
}
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue