fix dvc-objects/data imports

This commit is contained in:
Daniele Trifirò
2022-06-10 14:07:33 +05:45
committed by skshetry
parent a3ee993739
commit 677da2b22c
36 changed files with 61 additions and 61 deletions
+3 -3
View File
@@ -14,7 +14,7 @@ from dvc.testing.test_remote import ( # noqa, pylint: disable=unused-import
)
from dvc.utils.fs import remove
from dvc_data.db.local import LocalObjectDB
from dvc_objects.db import ObjectDB
from dvc_objects.hashfile.db import ObjectDB
def test_cloud_cli(tmp_dir, dvc, remote, mocker):
@@ -149,7 +149,7 @@ def test_warn_on_outdated_stage(tmp_dir, dvc, local_remote, caplog):
def test_hash_recalculation(mocker, dvc, tmp_dir, local_remote):
tmp_dir.gen({"foo": "foo"})
test_file_md5 = mocker.spy(dvc_objects.hash, "file_md5")
test_file_md5 = mocker.spy(dvc_objects.hashfile.hash, "file_md5")
ret = main(["config", "cache.type", "hardlink"])
assert ret == 0
ret = main(["add", "foo"])
@@ -211,7 +211,7 @@ def test_verify_hashes(
remove("dir")
remove(dvc.odb.local.cache_dir)
hash_spy = mocker.spy(dvc_objects.hash, "file_md5")
hash_spy = mocker.spy(dvc_objects.hashfile.hash, "file_md5")
dvc.pull()
assert hash_spy.call_count == 0