From 32f35ea686a90ab2d69dc3422d8010d3abcf8a5a Mon Sep 17 00:00:00 2001 From: "Mr. Outis" Date: Wed, 18 Dec 2019 22:29:44 -0600 Subject: [PATCH] summon: remove scm.add, `*_gen` already handles it --- tests/func/test_api.py | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/tests/func/test_api.py b/tests/func/test_api.py index 67eedcf23..2dc7a1ad1 100644 --- a/tests/func/test_api.py +++ b/tests/func/test_api.py @@ -150,15 +150,13 @@ def test_summon(tmp_dir, erepo_dir, dvc, monkeypatch): with monkeypatch.context() as m: m.chdir(fspath(erepo_dir)) - erepo_dir.dvc_gen("number", "100") - - erepo_dir.scm_gen("artifacts.yaml", artifacts_yaml) - erepo_dir.scm_gen( - "calculator.py", - "def add_to_num(x): return x + int(open('number').read())", - ) - erepo_dir.scm.add(["number.dvc", "calculator.py", "artifacts.yaml"]) - erepo_dir.scm.commit("Add files") + erepo_dir.dvc_gen("number", "100", commit="Add number.dvc") + erepo_dir.scm_gen("artifacts.yaml", artifacts_yaml) + erepo_dir.scm_gen( + "calculator.py", + "def add_to_num(x): return x + int(open('number').read())", + ) + erepo_dir.scm.commit("Add files") repo_url = "file://{}".format(erepo_dir)