do not try pexpect on windows; fix time.clock error on windows

This commit is contained in:
Paul Gauthier 2024-08-28 22:26:48 -07:00
parent bcb3fa1b47
commit ce397b71e8
4 changed files with 5 additions and 23 deletions

View file

@ -9,19 +9,3 @@ def test_run_cmd_echo():
assert exit_code == 0
assert output.strip() == "Hello, World!"
def test_run_cmd_echo_with_quotes():
command = 'echo "Hello, World!"'
exit_code, output = run_cmd(command)
assert exit_code == 0
assert output.strip() == "Hello, World!"
def test_run_cmd_invalid_command():
command = "invalid_command_that_does_not_exist"
exit_code, output = run_cmd(command)
assert exit_code != 0
assert "command not found" in output.lower() or "is not recognized" in output.lower()