aider/tests/basic/test_run_cmd.py

11 lines
238 B
Python

import pytest # noqa: F401
from aider.run_cmd import run_cmd
def test_run_cmd_echo():
command = "echo Hello, World!"
exit_code, output = run_cmd(command)
assert exit_code == 0
assert output.strip() == "Hello, World!"