π The fast, Pythonic way to build MCP servers and clients.
Fix GitHub MCP resource integration test (#4253)
Jeremiah Lowin1a06130fcfae
diff --git a/tests/integration_tests/test_github_mcp_remote.py b/tests/integration_tests/test_github_mcp_remote.pyindex a58b17c63..552fc28dd 100644--- a/tests/integration_tests/test_github_mcp_remote.py+++ b/tests/integration_tests/test_github_mcp_remote.py@@ -3,7 +3,7 @@ import osimport pytestfrom mcp import McpError-from mcp.types import TextContent, Tool+from mcp.types import Resource, TextContent, Toolfrom fastmcp import Clientfrom fastmcp.client import StreamableHttpTransport@@ -75,7 +75,10 @@ class TestGithubMCPRemote:assert streamable_http_client.is_connected()resources = await streamable_http_client.list_resources()assert isinstance(resources, list)- assert len(resources) == 0+ for resource in resources:+ assert isinstance(resource, Resource)+ assert resource.name+ assert str(resource.uri)async def test_list_prompts(self, streamable_http_client: Client[StreamableHttpTransport]