@@ -71,10 +71,6 @@ def test_tool_generation_basic(sample_app):
71
71
assert hasattr (tool , "parameters" ), "Tool missing 'parameters' property"
72
72
assert hasattr (tool , "fn_metadata" ), "Tool missing 'fn_metadata' property"
73
73
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
-
78
74
# With describe_all_responses=False by default, description should only include success response code
79
75
assert "200" in tool .description , f"Expected success response code in description for { tool .name } "
80
76
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):
104
100
105
101
# Check all tools have the appropriate schema information
106
102
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
-
111
103
description = tool .description
112
104
# Check that the tool includes information about the Item schema
113
105
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):
126
118
127
119
# Check all API tools include all response status codes
128
120
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
-
133
121
assert "200" in tool .description , f"Expected success response code in description for { tool .name } "
134
122
assert "422" in tool .description , f"Expected 422 response code in description for { tool .name } "
135
123
@@ -150,10 +138,6 @@ def test_tool_generation_with_all_responses_and_full_schema(sample_app):
150
138
151
139
# Check all tools include all response status codes and the full output schema
152
140
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
-
157
141
assert "200" in tool .description , f"Expected success response code in description for { tool .name } "
158
142
assert "422" in tool .description , f"Expected 422 response code in description for { tool .name } "
159
143
assert "Output Schema" in tool .description , f"Expected output schema in description for { tool .name } "
0 commit comments