push: fix cloud versioning

This commit is contained in:
Ruslan Kuprieiev
2023-11-15 16:28:17 +02:00
parent 86dd0785a0
commit 8c9358957c
7 changed files with 43 additions and 5 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ def test_open_external(tmp_dir, erepo_dir, cloud):
# NOTE: need file to be other size for Mac
erepo_dir.dvc_gen("version", "branchver", commit="add version")
erepo_dir.dvc.push(all_branches=True)
assert erepo_dir.dvc.push(all_branches=True) == 2
# Remove cache to force download
remove(erepo_dir.dvc.cache.local.path)
+1 -1
View File
@@ -486,7 +486,7 @@ def test_pull_partial(tmp_dir, dvc, local_remote):
clean(["foo"], dvc)
stats = dvc.pull(os.path.join("foo", "bar"))
assert stats["fetched"] == 2
assert stats["fetched"] == 3
assert (tmp_dir / "foo").read_text() == {"bar": {"baz": "baz"}}
+1 -1
View File
@@ -182,7 +182,7 @@ def test_partial_checkout_and_update(M, tmp_dir, dvc, remote):
assert dvc.pull("dir/subdir") == M.dict(
added=[join("dir", "")],
fetched=2,
fetched=3,
)
assert (tmp_dir / "dir").read_text() == {"subdir": {"lorem": "lorem"}}