Skip to content

Commit

Permalink
Added tests for .cmd syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Ofer Koren authored and koreno committed Jun 26, 2019
1 parent 0811dfa commit b559724
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -785,6 +785,9 @@ def test_pipeline_failure(self):
with pytest.raises(ProcessExecutionError):
(ls["--no-such-option"] | head)()

def test_cmd(self):
local.cmd.ls("/tmp")

def test_pipeline_retcode(self):
"From PR #288"
from plumbum.cmd import echo, grep
Expand Down
4 changes: 4 additions & 0 deletions tests/test_remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,10 @@ def test_glob_spaces(self):
filenames = [f.name for f in rem.cwd // ("*with space.txt")]
assert "file with space.txt" in filenames

def test_cmd(self):
with self._connect() as rem:
rem.cmd.ls("/tmp")

@pytest.mark.usefixtures("testdir")
def test_download_upload(self):
with self._connect() as rem:
Expand Down

0 comments on commit b559724

Please sign in to comment.