aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2012-01-10 14:47:23 +0100
committerGuido Günther <agx@sigxcpu.org>2012-01-10 16:09:49 +0100
commit205854df1f005bf8c8732f6b32492ede3a130c28 (patch)
tree74d6193a1e55ddd5236208b1b040dd01a1e8b703 /tests
parent3ad38b7ba4d52ee36339a1dab608c8ff8c2ec96c (diff)
GitRepository: add push() and push_tag()
Diffstat (limited to 'tests')
-rw-r--r--tests/test_GitRepository.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_GitRepository.py b/tests/test_GitRepository.py
index a2be74ee..4f581e5e 100644
--- a/tests/test_GitRepository.py
+++ b/tests/test_GitRepository.py
@@ -386,11 +386,18 @@ def test_fetch():
Methods tested:
- L{gbp.git.GitRepository.fetch}
+ - L{gbp.git.GitRepository.push}
+ - L{gbp.git.GitRepository.push_tag}
>>> import gbp.git, os
>>> d = os.path.join(clone_dir, 'gbp_%s_test_repo' % __name__)
>>> clone = gbp.git.GitRepository(d)
>>> clone.fetch()
+ >>> clone.push()
+ >>> clone.push('origin')
+ >>> clone.push('origin', 'master')
+ >>> clone.create_tag('tag3')
+ >>> clone.push_tag('origin', 'tag3')
"""
def test_create_bare():