mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-10 23:10:42 +01:00
remote: local: roll back cache dir metadata storing
This commit is contained in:
@@ -325,29 +325,6 @@ class TestAddCommit(TestDvc):
|
||||
self.assertEqual(len(os.listdir(self.dvc.cache.local.cache_dir)), 1)
|
||||
|
||||
|
||||
class TestShouldNotCheckCacheForDirIfCacheMetadataDidNotChange(TestDvc):
|
||||
def test(self):
|
||||
remote_local_loader_spy = spy(
|
||||
dvc.remote.local.RemoteLOCAL.load_dir_cache
|
||||
)
|
||||
with patch.object(
|
||||
dvc.remote.local.RemoteLOCAL,
|
||||
"load_dir_cache",
|
||||
remote_local_loader_spy,
|
||||
):
|
||||
|
||||
ret = main(["config", "cache.type", "copy"])
|
||||
self.assertEqual(ret, 0)
|
||||
|
||||
ret = main(["add", self.DATA_DIR])
|
||||
self.assertEqual(ret, 0)
|
||||
self.assertEqual(1, remote_local_loader_spy.mock.call_count)
|
||||
|
||||
ret = main(["status", "{}.dvc".format(self.DATA_DIR)])
|
||||
self.assertEqual(ret, 0)
|
||||
self.assertEqual(1, remote_local_loader_spy.mock.call_count)
|
||||
|
||||
|
||||
class TestShouldCollectDirCacheOnlyOnce(TestDvc):
|
||||
def test(self):
|
||||
from dvc.remote.local import RemoteLOCAL
|
||||
|
||||
Reference in New Issue
Block a user