Add meta to Client methods (#1923)
This commit is contained in:
parent
d77292fb06
commit
f0ab53e194
1 changed files with 221 additions and 156 deletions
|
|
@ -9,7 +9,6 @@ import sys
|
|||
from pathlib import Path
|
||||
|
||||
import pytest
|
||||
from pydantic import AnyUrl
|
||||
from pytest_examples import CodeExample, EvalExample, find_examples
|
||||
|
||||
from mcp import Client
|
||||
|
|
@ -82,7 +81,7 @@ async def test_desktop(monkeypatch: pytest.MonkeyPatch):
|
|||
assert content.text == "3"
|
||||
|
||||
# Test the desktop resource
|
||||
result = await client.read_resource(AnyUrl("dir://desktop"))
|
||||
result = await client.read_resource("dir://desktop")
|
||||
assert len(result.contents) == 1
|
||||
content = result.contents[0]
|
||||
assert isinstance(content, TextResourceContents)
|
||||
|
|
|
|||
Loading…
Reference in a new issue