mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-01 23:08:43 +01:00
gc: fix test_gc_no_dir_cache
This commit is contained in:
committed by
Ruslan Kuprieiev
parent
827f9a7f03
commit
457d615a51
@@ -111,8 +111,9 @@ def test_gc_no_dir_cache(tmp_dir, dvc):
|
||||
|
||||
remove(dir_stage.outs[0].cache_path)
|
||||
|
||||
with pytest.raises(CollectCacheError):
|
||||
with pytest.raises(RevCollectionError) as exc:
|
||||
dvc.gc(workspace=True)
|
||||
assert type(exc.value.__cause__) == CollectCacheError
|
||||
|
||||
assert _count_files(dvc.cache.local.path) == 4
|
||||
dvc.gc(force=True, workspace=True)
|
||||
|
||||
Reference in New Issue
Block a user