dvc: upgrade to dvc-objects 0.0.4

This commit is contained in:
Ruslan Kuprieiev
2022-06-13 18:03:53 +05:45
committed by skshetry
parent 7b16a377e5
commit ef689c5593
20 changed files with 110 additions and 313 deletions
+1 -3
View File
@@ -957,9 +957,7 @@ def test_add_to_remote(tmp_dir, dvc, remote, workspace):
hash_info = stage.outs[0].hash_info
meta = stage.outs[0].meta
with open(
remote.hash_to_path(hash_info.value), encoding="utf-8"
) as stream:
with open(remote.oid_to_path(hash_info.value), encoding="utf-8") as stream:
assert stream.read() == "foo"
assert meta.size == len("foo")