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
This commit is contained in:
Ruslan Kuprieiev
2020-12-31 00:37:39 +02:00
committed by GitHub
parent c28e671f47
commit 8162bb159c
7 changed files with 233 additions and 103 deletions
+13
View File
@@ -0,0 +1,13 @@
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