tests/repo: reload cache properly

This commit is contained in:
Mr. Outis
2019-12-17 11:55:47 -06:00
parent 5194543007
commit 0de183de26
+2
View File
@@ -1,5 +1,6 @@
import os
from dvc.cache import Cache
from dvc.repo import Repo
from dvc.system import System
from dvc.utils.compat import fspath
@@ -7,6 +8,7 @@ from dvc.utils.compat import fspath
def test_destroy(tmp_dir, dvc):
dvc.config.set("cache", "type", "symlink")
dvc.cache = Cache(dvc)
tmp_dir.dvc_gen("file", "text")
tmp_dir.dvc_gen({"dir": {"file": "lorem", "subdir/file": "ipsum"}})