Skip to content

Commit 0e37050

Browse files
Merge branch 'webb/test-mcp-streamable-http' into webb/test-fastmcp-streamable-http
2 parents 0ab862c + 1380f56 commit 0e37050

1 file changed

Lines changed: 0 additions & 28 deletions

File tree

tests/integrations/mcp/test_mcp.py

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -66,19 +66,6 @@ def reset_request_ctx():
6666
pass
6767

6868

69-
# Mock MCP types and structures
70-
class MockURI:
71-
"""Mock URI object for resource testing"""
72-
73-
def __init__(self, uri_string):
74-
self.scheme = uri_string.split("://")[0] if "://" in uri_string else ""
75-
self.path = uri_string.split("://")[1] if "://" in uri_string else uri_string
76-
self._uri_string = uri_string
77-
78-
def __str__(self):
79-
return self._uri_string
80-
81-
8269
class MockRequestContext:
8370
"""Mock MCP request context"""
8471

@@ -114,21 +101,6 @@ def __init__(self, text):
114101
self.text = text
115102

116103

117-
class MockPromptMessage:
118-
"""Mock PromptMessage object"""
119-
120-
def __init__(self, role, content_text):
121-
self.role = role
122-
self.content = MockTextContent(content_text)
123-
124-
125-
class MockGetPromptResult:
126-
"""Mock GetPromptResult object"""
127-
128-
def __init__(self, messages):
129-
self.messages = messages
130-
131-
132104
def test_integration_patches_server(sentry_init):
133105
"""Test that MCPIntegration patches the Server class"""
134106
# Get original methods before integration

0 commit comments

Comments
 (0)