Test that tools can be executed.
()
| 244 | |
| 245 | @pytest.mark.asyncio |
| 246 | async def test_tool_execute(): |
| 247 | """Test that tools can be executed.""" |
| 248 | tool = MockWeatherTool() |
| 249 | result = await tool.execute(location="Tokyo") |
| 250 | |
| 251 | assert isinstance(result, ToolResult) |
| 252 | assert result.success is True |
| 253 | assert result.content == "Weather data" |
| 254 | |
| 255 | |
| 256 | if __name__ == "__main__": |
nothing calls this directly
no test coverage detected