From ab744d5c452685b4a21559d1a2dcff8d033011bd Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Mon, 31 Oct 2011 11:30:56 +0100 Subject: GitRepository: fix fetch invocation without repo --- tests/test_GitRepository.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'tests') diff --git a/tests/test_GitRepository.py b/tests/test_GitRepository.py index dd713c12..f7e5e97a 100644 --- a/tests/test_GitRepository.py +++ b/tests/test_GitRepository.py @@ -333,6 +333,19 @@ def test_pull(): >>> clone.pull() """ +def test_fetch(): + """ + Fetch from a remote repository + + Methods tested: + - L{gbp.git.GitRepository.fetch} + + >>> import gbp.git, os + >>> d = os.path.join(clone_dir, 'gbp_%s_test_repo' % __name__) + >>> clone = gbp.git.GitRepository(d) + >>> clone.fetch() + """ + def test_create_bare(): """ Create a bare repository -- cgit v1.2.3