mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
15 lines
369 B
Python
15 lines
369 B
Python
from dvc.cli import parse_args
|
|
from dvc.commands.get_url import CmdGetUrl
|
|
|
|
|
|
def test_get_url(mocker):
|
|
cli_args = parse_args(["get-url", "src", "out", "-j", "5"])
|
|
assert cli_args.func == CmdGetUrl
|
|
|
|
cmd = cli_args.func(cli_args)
|
|
m = mocker.patch("dvc.repo.Repo.get_url")
|
|
|
|
assert cmd.run() == 0
|
|
|
|
m.assert_called_once_with("src", out="out", jobs=5)
|