π The fast, Pythonic way to build MCP servers and clients.
Update test_tool_manager.py
Jeremiah Lowin6014e880efbd
diff --git a/tests/tools/test_tool_manager.py b/tests/tools/test_tool_manager.pyindex 7902effa9..8f2bb32fa 100644--- a/tests/tools/test_tool_manager.py+++ b/tests/tools/test_tool_manager.py@@ -693,6 +693,7 @@ class TestCustomToolNames:# The tool is stored under the custom name and its .name is also set to custom_nameassert manager.get_tool("custom_name") is not Noneassert tool.name == "custom_name"+ assert isinstance(tool, FunctionTool)assert tool.fn.__name__ == "original_fn"# The tool should not be accessible via its original function namewith pytest.raises(NotFoundError, match="Unknown tool: original_fn"):@@ -764,6 +765,7 @@ class TestCustomToolNames:assert stored_tool.name == "test_tool"# But the function is different+ assert isinstance(stored_tool, FunctionTool)assert stored_tool.fn.__name__ == "replacement_fn"