Fix more ruff issues
This commit is contained in:
@@ -187,17 +187,14 @@ class TestToolRegistry:
|
||||
for expected in expected_tools:
|
||||
assert expected in tools, f"Expected tool {expected} not registered"
|
||||
|
||||
def test_tool_functions_return_dict(self):
|
||||
"""Verify all tool functions return dictionaries."""
|
||||
def test_tool_functions_are_valid(self):
|
||||
"""Verify all tool functions are properly structured."""
|
||||
tools = make_tools()
|
||||
|
||||
# Test with minimal valid arguments
|
||||
# Note: This is a smoke test, not full integration
|
||||
# Verify structure without calling functions
|
||||
# (calling would require full setup with memory, clients, etc.)
|
||||
for name, tool in tools.items():
|
||||
sig = inspect.signature(tool.func)
|
||||
# We can't call all tools without proper setup,
|
||||
# but we can verify they're structured correctly
|
||||
assert callable(tool.func)
|
||||
assert callable(tool.func), f"Tool {name} function is not callable"
|
||||
|
||||
|
||||
class TestToolDataclass:
|
||||
|
||||
Reference in New Issue
Block a user