Skip to content
Snippets Groups Projects
Commit 61e737eb authored by Hans Fangohr's avatar Hans Fangohr
Browse files

fix string-based test

parent f293dd4b
No related branches found
No related tags found
2 merge requests!19Move linux-debian11 into main,!14Draft: Add tests for run method
......@@ -34,7 +34,7 @@ def test_run_method(tmp_path):
with mod.os_chdir(str(tmp_path)):
# ensure single string command works
assert run(("ls -l")).returncode == 0
assert run(("ls -l"), shell=True).returncode == 0
# test spaces are handled correctly:
assert run(["touch", "file1 file2"]).returncode == 0
assert os.path.exists("file1")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment