(tmp_dir, scm, dvc)
| 381 | |
| 382 | |
| 383 | def test_abs_target(tmp_dir, scm, dvc): |
| 384 | tmp_dir.dvc_gen("file", "text") |
| 385 | |
| 386 | assert dvc.diff(targets=(tmp_dir / "file").fs_path) == { |
| 387 | "added": [{"path": "file", "hash": digest("text")}], |
| 388 | "deleted": [], |
| 389 | "modified": [], |
| 390 | "not in cache": [], |
| 391 | "renamed": [], |
| 392 | } |
| 393 | |
| 394 | |
| 395 | def setup_targets_test(tmp_dir): |