MCPcopy Create free account
hub / github.com/MiniMax-AI/Mini-Agent / test_foreground_command

Function test_foreground_command

tests/test_bash_tool.py:11–21  ·  view source on GitHub ↗

Test executing a simple foreground command.

()

Source from the content-addressed store, hash-verified

9
10@pytest.mark.asyncio
11async def test_foreground_command():
12 """Test executing a simple foreground command."""
13 print("\n=== Testing Foreground Command ===")
14
15 bash_tool = BashTool()
16 result = await bash_tool.execute(command="echo 'Hello from foreground'")
17
18 assert result.success
19 assert "Hello from foreground" in result.stdout
20 assert result.exit_code == 0
21 print(f"Output: {result.content}")
22
23
24@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 2

executeMethod · 0.95
BashToolClass · 0.90

Tested by

no test coverage detected