mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
Merge pull request #3139 from pared/2896_run_cmd
tests: run: unit: migrate to dir helpers
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user