From 98f6d56e8c82cefa112ec6942c2844565e669c8e Mon Sep 17 00:00:00 2001 From: Saugat Pachhai Date: Thu, 16 Jan 2020 22:59:58 +0545 Subject: [PATCH] test: refactor, apply suggestion from @pared MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Paweł Redzyński --- tests/unit/command/test_get.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/unit/command/test_get.py b/tests/unit/command/test_get.py index 391332490..6ac5e4bb5 100644 --- a/tests/unit/command/test_get.py +++ b/tests/unit/command/test_get.py @@ -23,10 +23,9 @@ def test_get_url(mocker, caplog): assert cli_args.func == CmdGet cmd = cli_args.func(cli_args) - m = mocker.patch("dvc.api.get_url") - m.return_value = "url" + m = mocker.patch("dvc.api.get_url", return_value="resource_url") assert cmd.run() == 0 - assert "url" in caplog.text + assert "resource_url" in caplog.text m.assert_called_once_with("src", repo="repo_url", rev="version")