From dfb26c7cf50484744b83abccc9e0691e85df43de Mon Sep 17 00:00:00 2001 From: Ishaan Jaffer Date: Mon, 2 Feb 2026 13:55:52 -0800 Subject: [PATCH] fix filter --- tests/mcp_tests/test_semantic_tool_filter_e2e.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/mcp_tests/test_semantic_tool_filter_e2e.py b/tests/mcp_tests/test_semantic_tool_filter_e2e.py index 0d5782559b2..dbcdeabdb95 100644 --- a/tests/mcp_tests/test_semantic_tool_filter_e2e.py +++ b/tests/mcp_tests/test_semantic_tool_filter_e2e.py @@ -9,7 +9,6 @@ from unittest.mock import Mock import pytest sys.path.insert(0, os.path.abspath("../..")) -import json from mcp.types import Tool as MCPTool @@ -68,7 +67,8 @@ async def test_e2e_semantic_filter(): call_type="completion", ) - print("final result tools: ", json.dumps(result["tools"], indent=4)) - # Single assertion: hook filtered tools - assert result and len(result["tools"]) < len(tools) + assert result and len(result["tools"]) < len(tools), f"Expected filtered tools, got {len(result['tools'])} tools (original: {len(tools)})" + + print(f"✅ E2E test passed: Filtering reduced tools from {len(tools)} to {len(result['tools'])}") + print(f" Filtered tools: {[t.name for t in result['tools']]}")