MCPcopy Create free account
hub / github.com/treeverse/dvc / test_modified

Function test_modified

tests/func/test_diff.py:189–204  ·  view source on GitHub ↗
(tmp_dir, scm, dvc)

Source from the content-addressed store, hash-verified

187
188
189def 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
207def test_modified_subrepo(tmp_dir, scm, dvc):

Callers

nothing calls this directly

Calls 3

digestFunction · 0.85
dvc_genMethod · 0.80
diffMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…