mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-10 23:10:42 +01:00
deps: bump dvc-data to 0.35.1
This commit is contained in:
committed by
Peter Rowlands (변기호)
parent
18f039d7c7
commit
38e9b2ba95
+1
-1
@@ -27,7 +27,7 @@ def get_url(path, repo=None, rev=None, remote=None):
|
||||
if not dvc_info:
|
||||
raise OutputNotFoundError(path, repo)
|
||||
|
||||
dvc_repo = info["repo"]
|
||||
dvc_repo = info["repo"] # pylint: disable=unsubscriptable-object
|
||||
md5 = dvc_info["md5"]
|
||||
|
||||
return dvc_repo.cloud.get_url_for(remote, checksum=md5)
|
||||
|
||||
+1
-1
@@ -53,7 +53,7 @@ dependencies = [
|
||||
"dvc-render==0.0.17",
|
||||
"dvc-task==0.1.11",
|
||||
"dvclive>=1.2.2",
|
||||
"dvc-data==0.35.0",
|
||||
"dvc-data==0.35.1",
|
||||
"dvc-http",
|
||||
"hydra-core>=1.1.0",
|
||||
"iterative-telemetry==0.0.6",
|
||||
|
||||
@@ -64,25 +64,25 @@ def test_walk(tmp_dir, dvc):
|
||||
assert result == [
|
||||
(
|
||||
str(tmp_dir),
|
||||
{"dir": dvc.fs.info(tmp_dir / "dir")},
|
||||
{"dir": dvc.fs.info(str(tmp_dir / "dir"))},
|
||||
{
|
||||
"bar": dvc.fs.info(tmp_dir / "bar"),
|
||||
".dvcignore": dvc.fs.info(tmp_dir / ".dvcignore"),
|
||||
"bar": dvc.fs.info(str(tmp_dir / "bar")),
|
||||
".dvcignore": dvc.fs.info(str(tmp_dir / ".dvcignore")),
|
||||
},
|
||||
),
|
||||
(
|
||||
str(tmp_dir / "dir"),
|
||||
{
|
||||
"subdir": dvc.fs.info(tmp_dir / "dir" / "subdir"),
|
||||
"subdir": dvc.fs.info(str(tmp_dir / "dir" / "subdir")),
|
||||
},
|
||||
{
|
||||
"baz": dvc.fs.info(tmp_dir / "dir" / "baz"),
|
||||
"baz": dvc.fs.info(str(tmp_dir / "dir" / "baz")),
|
||||
},
|
||||
),
|
||||
(
|
||||
str(tmp_dir / "dir" / "subdir"),
|
||||
{},
|
||||
{"qux": dvc.fs.info(tmp_dir / "dir" / "subdir" / "qux")},
|
||||
{"qux": dvc.fs.info(str(tmp_dir / "dir" / "subdir" / "qux"))},
|
||||
),
|
||||
]
|
||||
|
||||
|
||||
@@ -14,18 +14,18 @@ def test_state(tmp_dir, dvc):
|
||||
|
||||
state = State(dvc.root_dir, dvc.tmp_dir, dvc.dvcignore)
|
||||
|
||||
state.save(path, dvc.fs, hash_info)
|
||||
assert state.get(path, dvc.fs)[1] == hash_info
|
||||
state.save(str(path), dvc.fs, hash_info)
|
||||
assert state.get(str(path), dvc.fs)[1] == hash_info
|
||||
|
||||
path.unlink()
|
||||
path.write_text("1")
|
||||
|
||||
assert state.get(path, dvc.fs) == (None, None)
|
||||
assert state.get(str(path), dvc.fs) == (None, None)
|
||||
|
||||
hash_info = HashInfo("md5", file_md5(path, dvc.fs))
|
||||
state.save(path, dvc.fs, hash_info)
|
||||
state.save(str(path), dvc.fs, hash_info)
|
||||
|
||||
assert state.get(path, dvc.fs)[1] == hash_info
|
||||
assert state.get(str(path), dvc.fs)[1] == hash_info
|
||||
|
||||
|
||||
def test_state_overflow(tmp_dir, dvc):
|
||||
|
||||
Reference in New Issue
Block a user