mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-01 23:08:43 +01:00
+1
-1
@@ -41,7 +41,7 @@ dependencies = [
|
|||||||
"distro>=1.3",
|
"distro>=1.3",
|
||||||
"dpath<3,>=2.1.0",
|
"dpath<3,>=2.1.0",
|
||||||
"dulwich",
|
"dulwich",
|
||||||
"dvc-data>=3.18.0,<3.19.0",
|
"dvc-data>=3.18.1,<3.19.0",
|
||||||
"dvc-http>=2.29.0",
|
"dvc-http>=2.29.0",
|
||||||
"dvc-objects",
|
"dvc-objects",
|
||||||
"dvc-render>=1.0.1,<2",
|
"dvc-render>=1.0.1,<2",
|
||||||
|
|||||||
@@ -1244,3 +1244,27 @@ def test_shallow_should_iterate_upto_tracked_directory(tmp_dir, dvc, scm, local_
|
|||||||
"committed": {"added": M.unordered(*files)},
|
"committed": {"added": M.unordered(*files)},
|
||||||
"git": M.dict(),
|
"git": M.dict(),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
def test_duplicate_hashes_not_in_remote(tmp_dir, dvc, scm, local_remote):
|
||||||
|
"""Test that files with identical content (same hash) are all correctly reported.
|
||||||
|
|
||||||
|
Regression test for https://github.com/iterative/dvc/issues/10959
|
||||||
|
"""
|
||||||
|
tmp_dir.dvc_gen(
|
||||||
|
{"foo": "content", "bar": "content", "foobar": "foobar"}, commit="add files"
|
||||||
|
)
|
||||||
|
assert dvc.data_status(not_in_remote=True, granular=True, remote_refresh=True) == {
|
||||||
|
**EMPTY_STATUS,
|
||||||
|
"unchanged": M.unordered("foo", "bar", "foobar"),
|
||||||
|
"not_in_remote": M.unordered("foo", "bar", "foobar"),
|
||||||
|
"git": M.dict(),
|
||||||
|
}
|
||||||
|
|
||||||
|
dvc.push()
|
||||||
|
assert dvc.data_status(not_in_remote=True, granular=True, remote_refresh=True) == {
|
||||||
|
**EMPTY_STATUS,
|
||||||
|
"unchanged": M.unordered("foo", "bar", "foobar"),
|
||||||
|
"not_in_remote": [],
|
||||||
|
"git": M.dict(),
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user