Files
dvc/tests/func/test_root.py
T
Ruslan Kuprieiev 8162bb159c config: read merged config by default (#5179)
* config: read merged config by default

* tests: move root test out of config tests

* tests: refactor config tests

* cli: fix cache dir command
2020-12-31 00:37:39 +02:00

14 lines
323 B
Python

from dvc.main import main
def test_root(tmp_dir, dvc, caplog):
assert main(["root"]) == 0
assert ".\n" in caplog.text
def test_root_locked(tmp_dir, dvc, caplog):
# NOTE: check that `dvc root` is not blocked with dvc lock
with dvc.lock:
assert main(["root"]) == 0
assert ".\n" in caplog.text