Skip to content

Commit 1380f56

Browse files
remove mocks
1 parent aaf69c3 commit 1380f56

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

tests/integrations/mcp/test_mcp.py

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

134134

135-
# Mock MCP types and structures
136-
class MockURI:
137-
"""Mock URI object for resource testing"""
138-
139-
def __init__(self, uri_string):
140-
self.scheme = uri_string.split("://")[0] if "://" in uri_string else ""
141-
self.path = uri_string.split("://")[1] if "://" in uri_string else uri_string
142-
self._uri_string = uri_string
143-
144-
def __str__(self):
145-
return self._uri_string
146-
147-
148135
class MockRequestContext:
149136
"""Mock MCP request context"""
150137

@@ -180,21 +167,6 @@ def __init__(self, text):
180167
self.text = text
181168

182169

183-
class MockPromptMessage:
184-
"""Mock PromptMessage object"""
185-
186-
def __init__(self, role, content_text):
187-
self.role = role
188-
self.content = MockTextContent(content_text)
189-
190-
191-
class MockGetPromptResult:
192-
"""Mock GetPromptResult object"""
193-
194-
def __init__(self, messages):
195-
self.messages = messages
196-
197-
198170
def test_integration_patches_server(sentry_init):
199171
"""Test that MCPIntegration patches the Server class"""
200172
# Get original methods before integration

0 commit comments

Comments
 (0)