Skip to content

Commit 5976135

Browse files
remove test
1 parent 6579935 commit 5976135

1 file changed

Lines changed: 0 additions & 34 deletions

File tree

tests/integrations/mcp/test_mcp.py

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -963,40 +963,6 @@ def test_prompt_dict(name, arguments):
963963
assert SPANDATA.MCP_PROMPT_RESULT_MESSAGE_CONTENT not in span["data"]
964964

965965

966-
@pytest.mark.asyncio
967-
@pytest.mark.skip
968-
async def test_resource_without_protocol(sentry_init, capture_events):
969-
"""Test resource handler with URI without protocol scheme"""
970-
sentry_init(
971-
integrations=[MCPIntegration()],
972-
traces_sample_rate=1.0,
973-
)
974-
events = capture_events()
975-
976-
server = Server("test-server")
977-
978-
@server.read_resource()
979-
def test_resource(uri):
980-
return {"data": "test"}
981-
982-
with start_transaction(name="mcp tx"):
983-
await stdio(
984-
server,
985-
method="resources/read",
986-
params={
987-
"uri": "https://example.com/resource",
988-
},
989-
request_id="req-no-proto",
990-
)
991-
992-
(tx,) = events
993-
span = tx["spans"][0]
994-
995-
assert span["data"][SPANDATA.MCP_RESOURCE_URI] == "simple-path"
996-
# No protocol should be set
997-
assert SPANDATA.MCP_RESOURCE_PROTOCOL not in span["data"]
998-
999-
1000966
@pytest.mark.asyncio
1001967
async def test_tool_with_complex_arguments(sentry_init, capture_events):
1002968
"""Test tool handler with complex nested arguments"""

0 commit comments

Comments
 (0)