mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-10 23:10:42 +01:00
update test fixture to use matchers from dvc.testing (#10940)
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
from dvc.cli import parse_args
|
||||
from dvc.commands.get_url import CmdGetUrl
|
||||
from dvc.config import Config
|
||||
from dvc.testing import matchers as M
|
||||
|
||||
|
||||
def test_get_url(mocker, M):
|
||||
def test_get_url(mocker):
|
||||
cli_args = parse_args(["get-url", "src", "out", "-j", "5"])
|
||||
assert cli_args.func == CmdGetUrl
|
||||
|
||||
|
||||
@@ -2,9 +2,10 @@ from dvc.cli import parse_args
|
||||
from dvc.commands.ls_url import CmdListUrl
|
||||
from dvc.config import Config
|
||||
from dvc.fs import LocalFileSystem
|
||||
from dvc.testing import matchers as M
|
||||
|
||||
|
||||
def test_ls_url(mocker, M):
|
||||
def test_ls_url(mocker):
|
||||
cli_args = parse_args(["ls-url", "src"])
|
||||
assert cli_args.func == CmdListUrl
|
||||
cmd = cli_args.func(cli_args)
|
||||
@@ -21,7 +22,7 @@ def test_ls_url(mocker, M):
|
||||
)
|
||||
|
||||
|
||||
def test_recursive(mocker, M):
|
||||
def test_recursive(mocker):
|
||||
cli_args = parse_args(["ls-url", "-R", "-L", "2", "src"])
|
||||
assert cli_args.func == CmdListUrl
|
||||
cmd = cli_args.func(cli_args)
|
||||
@@ -34,7 +35,7 @@ def test_recursive(mocker, M):
|
||||
)
|
||||
|
||||
|
||||
def test_tree(mocker, M):
|
||||
def test_tree(mocker):
|
||||
cli_args = parse_args(["ls-url", "--tree", "--level", "2", "src"])
|
||||
assert cli_args.func == CmdListUrl
|
||||
cmd = cli_args.func(cli_args)
|
||||
|
||||
Reference in New Issue
Block a user