MCPcopy Index your code
hub / github.com/MiniMax-AI/Mini-Agent / test_command_failure

Function test_command_failure

tests/test_bash_tool.py:40–50  ·  view source on GitHub ↗

Test command that fails with non-zero exit code.

()

Source from the content-addressed store, hash-verified

38
39@pytest.mark.asyncio
40async def test_command_failure():
41 """Test command that fails with non-zero exit code."""
42 print("\n=== Testing Command Failure ===")
43
44 bash_tool = BashTool()
45 result = await bash_tool.execute(command="ls /nonexistent_directory_12345")
46
47 assert not result.success
48 assert result.exit_code != 0
49 assert result.error is not None
50 print(f"Error: {result.error}")
51
52
53@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 2

executeMethod · 0.95
BashToolClass · 0.90

Tested by

no test coverage detected