Fix GitHub MCP resource integration test (#4253)

This commit is contained in:
Jeremiah Lowin 2026-05-30 11:48:46 -04:00 committed by GitHub
commit 1a06130fcf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,7 +3,7 @@ import os
import pytest
from mcp import McpError
from mcp.types import TextContent, Tool
from mcp.types import Resource, TextContent, Tool
from fastmcp import Client
from 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]