(self)
| 17 | await self.tool._session.stop() |
| 18 | |
| 19 | async def test_tool_initialization(self): |
| 20 | self.assertEqual(self.tool.get_name(), "bash") |
| 21 | self.assertIn("Run commands in a bash shell", self.tool.get_description()) |
| 22 | |
| 23 | params = self.tool.get_parameters() |
| 24 | param_names = [p.name for p in params] |
| 25 | self.assertIn("command", param_names) |
| 26 | self.assertIn("restart", param_names) |
| 27 | |
| 28 | async def test_command_error_handling(self): |
| 29 | result = await self.tool.execute(ToolCallArguments({"command": "invalid_command_123"})) |
nothing calls this directly
no test coverage detected