diff --git a/tests.py b/tests.py index b79ccf1de747c90c5628195cc3a741deff36d6c3..31b69dd80d33c085b2c1ad5d1e73d2f7c97e8205 100644 --- a/tests.py +++ b/tests.py @@ -26,12 +26,15 @@ def test_os_chdir(tmp_path): def test_run_method(tmp_path): + """Run tests for run method.""" + run = mod.run # test a command with options: assert run(["date", "+%Y-%m-%d"]).returncode == 0 assert run("date +%Y-%m-%d", shell=True).returncode == 0 + # tests interacting with the file system with mod.os_chdir(str(tmp_path)): # ensure single string command works assert run(("ls -l"), shell=True).returncode == 0