MCPcopy Create free account
hub / github.com/bytedance/trae-agent / test_tool_initialization

Method test_tool_initialization

tests/tools/test_bash_tool.py:19–26  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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"}))

Callers

nothing calls this directly

Calls 3

get_nameMethod · 0.45
get_descriptionMethod · 0.45
get_parametersMethod · 0.45

Tested by

no test coverage detected