We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58e0f53 commit 1a06130Copy full SHA for 1a06130
1 file changed
tests/integration_tests/test_github_mcp_remote.py
@@ -3,7 +3,7 @@
3
4
import pytest
5
from mcp import McpError
6
-from mcp.types import TextContent, Tool
+from mcp.types import Resource, TextContent, Tool
7
8
from fastmcp import Client
9
from fastmcp.client import StreamableHttpTransport
@@ -75,7 +75,10 @@ async def test_list_resources(
75
assert streamable_http_client.is_connected()
76
resources = await streamable_http_client.list_resources()
77
assert isinstance(resources, list)
78
- assert len(resources) == 0
+ for resource in resources:
79
+ assert isinstance(resource, Resource)
80
+ assert resource.name
81
+ assert str(resource.uri)
82
83
async def test_list_prompts(
84
self, streamable_http_client: Client[StreamableHttpTransport]
0 commit comments