diff --git a/dvc/api.py b/dvc/api.py index 44db6aac6..d5909dea5 100644 --- a/dvc/api.py +++ b/dvc/api.py @@ -78,6 +78,7 @@ def _make_repo(repo_url, rev=None): def summon(name, fname="dvcsummon.yaml", args=None, repo=None, rev=None): + # TODO: Write a meaningful docstring about `summon` with _make_repo(repo, rev=rev) as _repo: def pull_dependencies(deps): diff --git a/tests/func/test_api.py b/tests/func/test_api.py index 0b019d42f..39e7837b4 100644 --- a/tests/func/test_api.py +++ b/tests/func/test_api.py @@ -148,7 +148,6 @@ def test_summon(tmp_dir, erepo_dir, dvc, monkeypatch): } ) - # XXX: Chdir because `stage.create` defaults to `wdir = os.curdir` with monkeypatch.context() as m: m.chdir(fspath(erepo_dir))