summaryrefslogtreecommitdiff
path: root/test/git/test_repo.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2009-10-22 12:24:36 +0200
committerSebastian Thiel <byronimo@gmail.com>2009-10-22 12:24:36 +0200
commitf62c9b9c0c9bda792c3fa531b18190e97eb53509 (patch)
tree3e2759b8ba2de500a3c75b189cd49a7820c65753 /test/git/test_repo.py
parent33fa178eeb7bf519f5fff118ebc8e27e76098363 (diff)
downloadgitpython-f62c9b9c0c9bda792c3fa531b18190e97eb53509.tar.gz
Git.cmd: removed with_raw_output option
repo.archive: made it work with new way of custom output streams added test for repo.archive which was missing for some reason
Diffstat (limited to 'test/git/test_repo.py')
-rw-r--r--test/git/test_repo.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/git/test_repo.py b/test/git/test_repo.py
index bc2c7094..ff10f6a6 100644
--- a/test/git/test_repo.py
+++ b/test/git/test_repo.py
@@ -184,6 +184,11 @@ class TestRepo(TestCase):
def test_tag(self):
assert self.repo.tag('0.1.5').commit
+ def test_archive(self):
+ tmpfile = os.tmpfile()
+ self.repo.archive(tmpfile, '0.1.5')
+ assert tmpfile.tell()
+
@patch_object(Git, '_call_process')
def test_should_display_blame_information(self, git):
git.return_value = fixture('blame')