@@ -71,10 +71,6 @@ def test_tool_generation_basic(sample_app):
7171 assert hasattr (tool , "parameters" ), "Tool missing 'parameters' property"
7272 assert hasattr (tool , "fn_metadata" ), "Tool missing 'fn_metadata' property"
7373
74- # Skip MCP's internal tool that doesn't follow the same patterns
75- if tool .name == "handle_mcp_connection_mcp_get" :
76- continue
77-
7874 # With describe_all_responses=False by default, description should only include success response code
7975 assert "200" in tool .description , f"Expected success response code in description for { tool .name } "
8076 assert "422" not in tool .description , f"Expected not to see 422 response in tool description for { tool .name } "
@@ -104,10 +100,6 @@ def test_tool_generation_with_full_schema(sample_app):
104100
105101 # Check all tools have the appropriate schema information
106102 for tool in tools :
107- # Skip MCP's internal tool that doesn't follow the same patterns
108- if tool .name == "handle_mcp_connection_mcp_get" :
109- continue
110-
111103 description = tool .description
112104 # Check that the tool includes information about the Item schema
113105 assert "Item" in description , f"Item schema should be included in the description for { tool .name } "
@@ -126,10 +118,6 @@ def test_tool_generation_with_all_responses(sample_app):
126118
127119 # Check all API tools include all response status codes
128120 for tool in tools :
129- # Skip MCP's internal tool that doesn't follow the same patterns
130- if tool .name == "handle_mcp_connection_mcp_get" :
131- continue
132-
133121 assert "200" in tool .description , f"Expected success response code in description for { tool .name } "
134122 assert "422" in tool .description , f"Expected 422 response code in description for { tool .name } "
135123
@@ -150,10 +138,6 @@ def test_tool_generation_with_all_responses_and_full_schema(sample_app):
150138
151139 # Check all tools include all response status codes and the full output schema
152140 for tool in tools :
153- # Skip MCP's internal tool that doesn't follow the same patterns
154- if tool .name == "handle_mcp_connection_mcp_get" :
155- continue
156-
157141 assert "200" in tool .description , f"Expected success response code in description for { tool .name } "
158142 assert "422" in tool .description , f"Expected 422 response code in description for { tool .name } "
159143 assert "Output Schema" in tool .description , f"Expected output schema in description for { tool .name } "
0 commit comments