Merge pull request #3139 from pared/2896_run_cmd

tests: run: unit: migrate to dir helpers
This commit is contained in:
Ruslan Kuprieiev
2020-01-14 15:28:56 +02:00
committed by GitHub
+3 -3
View File
@@ -2,7 +2,7 @@ from dvc.cli import parse_args
from dvc.command.run import CmdRun
def test_run(mocker, dvc_repo):
def test_run(mocker, dvc):
cli_args = parse_args(
[
"run",
@@ -64,7 +64,7 @@ def test_run(mocker, dvc_repo):
)
def test_run_args_from_cli(mocker, dvc_repo):
def test_run_args_from_cli(mocker, dvc):
args = parse_args(["run", "echo", "foo"])
cmd = args.func(args)
m = mocker.patch.object(cmd.repo, "run", autospec=True)
@@ -90,7 +90,7 @@ def test_run_args_from_cli(mocker, dvc_repo):
)
def test_run_args_with_spaces(mocker, dvc_repo):
def test_run_args_with_spaces(mocker, dvc):
args = parse_args(["run", "echo", "foo bar"])
cmd = args.func(args)
m = mocker.patch.object(cmd.repo, "run", autospec=True)