summaryrefslogtreecommitdiff
path: root/test/git/test_repo.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2009-10-14 23:37:45 +0200
committerSebastian Thiel <byronimo@gmail.com>2009-10-14 23:37:45 +0200
commit2e6d110fbfa1f2e6a96bc8329e936d0cf1192844 (patch)
tree2b792542f3de64e63763444ae350d2410c3d00e8 /test/git/test_repo.py
parent832b56394b079c9f6e4c777934447a9e224facfe (diff)
downloadgitpython-2e6d110fbfa1f2e6a96bc8329e936d0cf1192844.tar.gz
tree: now reads tress directly by parsing the binary data, allowing it to safe possibly hundreds of command calls
Diffstat (limited to 'test/git/test_repo.py')
-rw-r--r--test/git/test_repo.py13
1 files changed, 1 insertions, 12 deletions
diff --git a/test/git/test_repo.py b/test/git/test_repo.py
index b882752d..e998ac6d 100644
--- a/test/git/test_repo.py
+++ b/test/git/test_repo.py
@@ -84,18 +84,7 @@ class TestRepo(object):
assert_equal("4c8124ffcf4039d292442eeccabdeca5af5c5017", commit.id)
assert_true(git.called)
-
- @patch_object(Git, '_call_process')
- def test_tree(self, git):
- git.return_value = fixture('ls_tree_a')
-
- tree = self.repo.tree(Head(self.repo, 'master'))
-
- assert_equal(4, len([c for c in tree if isinstance(c, Blob)]))
- assert_equal(3, len([c for c in tree if isinstance(c, Tree)]))
-
- assert_true(git.called)
-
+
@patch_object(Repo, '__init__')
@patch_object(Git, '_call_process')
def test_init_bare(self, git, repo):