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

fix test

(behaviour of run is like subprocess.run)
parent 61e737eb
No related branches found
No related tags found
2 merge requests!19Move linux-debian11 into main,!14Draft: Add tests for run method
...@@ -36,7 +36,7 @@ def test_run_method(tmp_path): ...@@ -36,7 +36,7 @@ def test_run_method(tmp_path):
# ensure single string command works # ensure single string command works
assert run(("ls -l"), shell=True).returncode == 0 assert run(("ls -l"), shell=True).returncode == 0
# test spaces are handled correctly: # test spaces are handled correctly:
assert run(["touch", "file1 file2"]).returncode == 0 assert run(["touch", "file1", "file2"]).returncode == 0
assert os.path.exists("file1") assert os.path.exists("file1")
assert os.path.exists("file2") assert os.path.exists("file2")
# test output is captured: # test output is captured:
......
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