(tmp_dir, scm, dvc)
| 187 | |
| 188 | |
| 189 | def test_modified(tmp_dir, scm, dvc): |
| 190 | tmp_dir.dvc_gen("file", "first", commit="first version") |
| 191 | tmp_dir.dvc_gen("file", "second") |
| 192 | |
| 193 | assert dvc.diff() == { |
| 194 | "added": [], |
| 195 | "deleted": [], |
| 196 | "modified": [ |
| 197 | { |
| 198 | "path": "file", |
| 199 | "hash": {"old": digest("first"), "new": digest("second")}, |
| 200 | } |
| 201 | ], |
| 202 | "not in cache": [], |
| 203 | "renamed": [], |
| 204 | } |
| 205 | |
| 206 | |
| 207 | def test_modified_subrepo(tmp_dir, scm, dvc): |