mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-27 15:28:30 +01:00
import: add '--file' option (#4622)
* import: add '--file' option Fixes #4093 * Update dvc/command/imp.py Co-authored-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
co-authored by
Ruslan Kuprieiev
parent
a5ab01390f
commit
738dfd49cf
@@ -4,7 +4,17 @@ from dvc.command.imp import CmdImport
|
||||
|
||||
def test_import(mocker):
|
||||
cli_args = parse_args(
|
||||
["import", "repo_url", "src", "--out", "out", "--rev", "version"]
|
||||
[
|
||||
"import",
|
||||
"repo_url",
|
||||
"src",
|
||||
"--out",
|
||||
"out",
|
||||
"--file",
|
||||
"file",
|
||||
"--rev",
|
||||
"version",
|
||||
]
|
||||
)
|
||||
assert cli_args.func == CmdImport
|
||||
|
||||
@@ -13,4 +23,6 @@ def test_import(mocker):
|
||||
|
||||
assert cmd.run() == 0
|
||||
|
||||
m.assert_called_once_with("repo_url", path="src", out="out", rev="version")
|
||||
m.assert_called_once_with(
|
||||
"repo_url", path="src", out="out", fname="file", rev="version"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user