mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-26 07:18:31 +01:00
@@ -331,6 +331,18 @@ def test_no_commits(tmp_dir):
|
||||
assert Repo.init().diff() == {}
|
||||
|
||||
|
||||
def test_abs_target(tmp_dir, scm, dvc):
|
||||
tmp_dir.dvc_gen("file", "text")
|
||||
|
||||
assert dvc.diff(targets=(tmp_dir / "file").fs_path) == {
|
||||
"added": [{"path": "file", "hash": digest("text")}],
|
||||
"deleted": [],
|
||||
"modified": [],
|
||||
"not in cache": [],
|
||||
"renamed": [],
|
||||
}
|
||||
|
||||
|
||||
def setup_targets_test(tmp_dir):
|
||||
tmp_dir.dvc_gen("file", "first", commit="add a file")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user