Skip to content

Commit

Permalink
unit: test: check output of get --show-url command
Browse files Browse the repository at this point in the history
  • Loading branch information
skshetry committed Jan 16, 2020
1 parent 50206d4 commit 02a73a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/unit/command/test_get.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def test_get(mocker):
m.assert_called_once_with("repo_url", path="src", out="out", rev="version")


def test_get_url(mocker):
def test_get_url(mocker, caplog):
cli_args = parse_args(
["get", "repo_url", "src", "--rev", "version", "--show-url"]
)
Expand All @@ -27,5 +27,6 @@ def test_get_url(mocker):
m.return_value = "url"

assert cmd.run() == 0
assert "url" in caplog.text

m.assert_called_once_with("src", repo="repo_url", rev="version")

0 comments on commit 02a73a0

Please sign in to comment.