diff options
author | Guido Günther <agx@sigxcpu.org> | 2011-10-21 21:05:05 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2011-10-22 15:33:40 +0200 |
commit | 85c3e458edc0dc1d1ab5f62c8ec75a193d45e29f (patch) | |
tree | b04c6bc3246442937fe92b5a50ae7f9cece20120 /tests | |
parent | 8ed66f116d1fa8f665fb4e5aa59c4303867d39b2 (diff) | |
download | git-buildpackage-85c3e458edc0dc1d1ab5f62c8ec75a193d45e29f.tar.gz git-buildpackage-85c3e458edc0dc1d1ab5f62c8ec75a193d45e29f.tar.bz2 git-buildpackage-85c3e458edc0dc1d1ab5f62c8ec75a193d45e29f.zip |
Make create_repo a @classmethod
and GitInit superfluous
Git-Dch: Ignore
Diffstat (limited to 'tests')
-rw-r--r-- | tests/03_test_gbp_branch.py | 2 | ||||
-rw-r--r-- | tests/04_test_gbp_submodules.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/03_test_gbp_branch.py b/tests/03_test_gbp_branch.py index 9c3d9369..a3056975 100644 --- a/tests/03_test_gbp_branch.py +++ b/tests/03_test_gbp_branch.py @@ -16,7 +16,7 @@ def setup(): top = os.path.abspath(os.curdir) repo_dir = os.path.join(top, 'gbp_%s_test_repo' % __name__) - repo = gbp.git.create_repo(repo_dir) + repo = gbp.git.GitRepository.create(repo_dir) os.chdir(repo_dir) diff --git a/tests/04_test_gbp_submodules.py b/tests/04_test_gbp_submodules.py index 7a4dfa94..af44c07a 100644 --- a/tests/04_test_gbp_submodules.py +++ b/tests/04_test_gbp_submodules.py @@ -23,7 +23,7 @@ class Submodule(object): def __init__(self, name, tmpdir): self.name = name self.dir = os.path.join(tmpdir, name) - self.repo = gbp.git.create_repo(self.dir) + self.repo = gbp.git.GitRepository.create(self.dir) def setup(): @@ -34,7 +34,7 @@ def setup(): os.mkdir(tmpdir) repodir = os.path.join(tmpdir, 'test_repo') - repo = gbp.git.create_repo(repodir) + repo = gbp.git.GitRepository.create(repodir) for name in submodule_names: submodules.append(Submodule(name, tmpdir)) |