Fix test_make_tool_all_tools to skip test mock classes

This commit is contained in:
openhands committed 2025-04-22 14:12:11 +00:00
1 parent f1b9b3bf3d
commit 6bb0074587
1 file changed
+5
+5
View File
@@ -245,6 +245,11 @@ def test_make_tool_all_tools() -> None:
if tool_class.__name__ == "Tool" or getattr(tool_class, "__abstractmethods__", set()):
continue
# Skip test mock classes that don't properly implement __init__
if tool_class.__name__ in ["BaseMockTool", "BadTool", "NoParamsTool", "NoReturnTool",
"MissingParamTool", "ComplexDocTool", "FormatTool", "NoDescriptionTool"]:
continue
# Create an instance of the tool
tool_instance = tool_class(MockAgent())