Test executing a simple foreground command.
()
| 9 | |
| 10 | @pytest.mark.asyncio |
| 11 | async 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 |