mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
* config: read merged config by default * tests: move root test out of config tests * tests: refactor config tests * cli: fix cache dir command
14 lines
323 B
Python
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
|