mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-19 23:11:44 +01:00
repo: rename odb -> cache
We used to have it named `cache` before, but these days it is clear that you can have three odbs: just odb (e.g. in-memory), cache (typically local) or remote (typically cloud). Fixing naming here before proceeding with introducing `out.odb` and `out.cache`. In preparation for migration to https://github.com/iterative/dvc-data/pull/304
This commit is contained in:
@@ -303,12 +303,12 @@ def test_push_pull_cache(
|
||||
with open(path, encoding="utf-8") as f:
|
||||
assert f.read() == str(x)
|
||||
|
||||
remove(dvc.odb.local.path)
|
||||
remove(dvc.cache.local.path)
|
||||
|
||||
dvc.experiments.pull(remote, [ref_info.name], pull_cache=True)
|
||||
for x in range(2, checkpoint_stage.iterations + 1):
|
||||
hash_ = digest(str(x))
|
||||
path = os.path.join(dvc.odb.local.path, hash_[:2], hash_[2:])
|
||||
path = os.path.join(dvc.cache.local.path, hash_[:2], hash_[2:])
|
||||
assert os.path.exists(path)
|
||||
with open(path, encoding="utf-8") as f:
|
||||
assert f.read() == str(x)
|
||||
|
||||
Reference in New Issue
Block a user