deps: bump scmrepo to 0.1.15; close subrepo.dvc on tests teardown (#9122)

This commit is contained in:
skshetry
2023-03-06 20:21:42 +05:45
committed by GitHub
parent 25fd274090
commit 93eea0cd42
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ dependencies = [
"requests>=2.22",
"rich>=12",
"ruamel.yaml>=0.17.11",
"scmrepo>=0.1.14,<1",
"scmrepo>=0.1.15,<1",
"shortuuid>=0.5",
"shtab<2,>=1.3.4",
"tabulate>=0.8.7",
+2 -1
View File
@@ -405,11 +405,12 @@ def test_subdir(tmp_dir, scm, dvc, workspace):
assert resolve_rev(scm, ref_info.name) == exp
def test_subrepo(tmp_dir, scm, workspace):
def test_subrepo(tmp_dir, request, scm, workspace):
from dvc.testing.tmp_dir import make_subrepo
subrepo = tmp_dir / "dir" / "repo"
make_subrepo(subrepo, scm)
request.addfinalizer(subrepo.dvc.close)
subrepo.gen("copy.py", COPY_SCRIPT)
subrepo.gen("params.yaml", "foo: 1")