mirror of
https://github.com/tiennm99/serena.git
synced 2026-10-13 16:15:29 +00:00
Fix test_make_tool_all_tools to skip test mock classes
This commit is contained in:
1 parent
f1b9b3bf3d
commit
6bb0074587
1 file changed
+5
@@ -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())
|
||||
|
||||
|
||||
Reference in new issue
Block a user