mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-12-04 23:10:46 +01:00
cache: move unrelated helpers out of CloudCache class (#5439)
* cache: move transfer to objects Moving it as is for now. * cache: move link() to checkout
This commit is contained in:
@@ -937,8 +937,8 @@ def test_add_file_in_symlink_dir(make_tmp_dir, tmp_dir, dvc, external):
|
||||
def test_add_with_cache_link_error(tmp_dir, dvc, mocker, caplog):
|
||||
tmp_dir.gen("foo", "foo")
|
||||
|
||||
mocker.patch.object(
|
||||
dvc.cache.local, "_do_link", side_effect=DvcException("link failed")
|
||||
mocker.patch(
|
||||
"dvc.checkout._do_link", side_effect=DvcException("link failed")
|
||||
)
|
||||
with caplog.at_level(logging.WARNING, logger="dvc"):
|
||||
dvc.add("foo")
|
||||
|
||||
Reference in New Issue
Block a user