From e7a35319ba55b6cf0b88bc6299a85281de2374c1 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Fri, 21 Oct 2011 21:20:24 +0200 Subject: Replace GitAdd by GitRepository.add_files Git-Dch: Ignore --- tests/03_test_gbp_branch.py | 2 +- tests/04_test_gbp_submodules.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/03_test_gbp_branch.py b/tests/03_test_gbp_branch.py index a3056975..a99391d0 100644 --- a/tests/03_test_gbp_branch.py +++ b/tests/03_test_gbp_branch.py @@ -39,7 +39,7 @@ def test_is_empty(): def test_add_files(): """Add some dummy data""" shutil.copy(".git/HEAD", "testfile") - gbp.command_wrappers.GitAdd()(['-f', '.']) + repo.add_files('.', force=True) gbp.command_wrappers.GitCommand("commit", ["-mfoo", "-a"])() assert True diff --git a/tests/04_test_gbp_submodules.py b/tests/04_test_gbp_submodules.py index af44c07a..a6b66bb6 100644 --- a/tests/04_test_gbp_submodules.py +++ b/tests/04_test_gbp_submodules.py @@ -55,7 +55,7 @@ def test_empty_has_submodules(): def _add_dummy_data(msg): shutil.copy(".git/HEAD", testfile_name) - gbp.command_wrappers.GitAdd()(['-f', '.']) + repo.add_files('.', force=True) gbp.command_wrappers.GitCommand("commit", ["-m%s" % msg, "-a"])() -- cgit v1.2.3