mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
By splitting dvc.cli into a module, we'll be able to share cli-related utilities, split parser-related stuffs into smaller parts, improve reusability and improve API for command extensions in the future.
14 lines
340 B
Python
14 lines
340 B
Python
from dvc.cli import main
|
|
|
|
|
|
def test_root(tmp_dir, dvc, capsys):
|
|
assert main(["root"]) == 0
|
|
assert "." in capsys.readouterr()[0]
|
|
|
|
|
|
def test_root_locked(tmp_dir, dvc, capsys):
|
|
# NOTE: check that `dvc root` is not blocked with dvc lock
|
|
with dvc.lock:
|
|
assert main(["root"]) == 0
|
|
assert "." in capsys.readouterr()[0]
|