ui: migrating rest to the ui.write (#6176)

* complete migration to ui.write

* fix small bugs
This commit is contained in:
Saugat Pachhai
2021-06-21 22:14:59 +03:00
committed by GitHub
parent f2998630a3
commit 476af100de
29 changed files with 231 additions and 230 deletions
+4 -4
View File
@@ -1,13 +1,13 @@
from dvc.main import main
def test_root(tmp_dir, dvc, caplog):
def test_root(tmp_dir, dvc, capsys):
assert main(["root"]) == 0
assert ".\n" in caplog.text
assert "." in capsys.readouterr()[0]
def test_root_locked(tmp_dir, dvc, caplog):
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 ".\n" in caplog.text
assert "." in capsys.readouterr()[0]