Fix more ruff issues

This commit is contained in:
2025-12-07 05:42:29 +01:00
parent 10704896f9
commit a21121d025
4 changed files with 15 additions and 18 deletions

View File

@@ -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: