mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
ui: migrating rest to the ui.write (#6176)
* complete migration to ui.write * fix small bugs
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user