mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
imp/imp_url cmd test: remove unnecessary dvc fixture
This commit is contained in:
@@ -2,7 +2,7 @@ from dvc.cli import parse_args
|
||||
from dvc.command.imp import CmdImport
|
||||
|
||||
|
||||
def test_import(mocker, dvc):
|
||||
def test_import(mocker):
|
||||
cli_args = parse_args(
|
||||
["import", "repo_url", "src", "--out", "out", "--rev", "version"]
|
||||
)
|
||||
|
||||
@@ -5,7 +5,7 @@ from dvc.command.imp_url import CmdImportUrl
|
||||
from dvc.exceptions import DvcException
|
||||
|
||||
|
||||
def test_import_url(mocker, dvc):
|
||||
def test_import_url(mocker):
|
||||
cli_args = parse_args(["import-url", "src", "out", "--file", "file"])
|
||||
assert cli_args.func == CmdImportUrl
|
||||
|
||||
@@ -17,7 +17,7 @@ def test_import_url(mocker, dvc):
|
||||
m.assert_called_once_with("src", out="out", fname="file")
|
||||
|
||||
|
||||
def test_failed_import_url(mocker, caplog, dvc):
|
||||
def test_failed_import_url(mocker, caplog):
|
||||
cli_args = parse_args(["import-url", "http://somesite.com/file_name"])
|
||||
assert cli_args.func == CmdImportUrl
|
||||
|
||||
|
||||
Reference in New Issue
Block a user