mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-11 15:28:27 +01:00
version: use CmdBaseNoRepo
Currently `dvc version` outside of dvc repo raises "not dvc repo" error, even though it is not really using repo in any way. Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
@@ -4,7 +4,13 @@ from dvc.command.version import CmdVersion
|
||||
from dvc.cli import parse_args
|
||||
|
||||
|
||||
def test_run():
|
||||
def test_run_in_repo(repo_dir, dvc):
|
||||
cmd = CmdVersion(parse_args(["version"]))
|
||||
ret = cmd.run_cmd()
|
||||
assert ret == 0
|
||||
|
||||
|
||||
def test_run_outside_of_repo(repo_dir):
|
||||
cmd = CmdVersion(parse_args(["version"]))
|
||||
ret = cmd.run_cmd()
|
||||
assert ret == 0
|
||||
|
||||
Reference in New Issue
Block a user