(tmp_dir, scm, dvc)
| 29 | |
| 30 | |
| 31 | def test_added(tmp_dir, scm, dvc): |
| 32 | tmp_dir.dvc_gen("file", "text") |
| 33 | |
| 34 | assert dvc.diff() == { |
| 35 | "added": [{"path": "file", "hash": digest("text")}], |
| 36 | "deleted": [], |
| 37 | "modified": [], |
| 38 | "not in cache": [], |
| 39 | "renamed": [], |
| 40 | } |
| 41 | |
| 42 | |
| 43 | def test_added_deep(tmp_dir, scm, dvc): |