summaryrefslogtreecommitdiff
path: root/test/git/test_repo.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2009-10-15 14:11:34 +0200
committerSebastian Thiel <byronimo@gmail.com>2009-10-15 14:46:05 +0200
commit9ce1193c851e98293a237ad3d2d87725c501e89f (patch)
treebdac0e4a917ca3c1b21eb580402a2854fcf33692 /test/git/test_repo.py
parent2da2b90e6930023ec5739ae0b714bbdb30874583 (diff)
downloadgitpython-9ce1193c851e98293a237ad3d2d87725c501e89f.tar.gz
Added Commit.iter_parents to iterate all parents
Renamed Commit.commits to iter_commits repo: assured proper use of the terms revision ( rev ) and reference ( ref )
Diffstat (limited to 'test/git/test_repo.py')
-rw-r--r--test/git/test_repo.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/git/test_repo.py b/test/git/test_repo.py
index 24a13ed1..5869fb6a 100644
--- a/test/git/test_repo.py
+++ b/test/git/test_repo.py
@@ -42,7 +42,7 @@ class TestRepo(object):
def test_commits(self, git):
git.return_value = ListProcessAdapter(fixture('rev_list'))
- commits = self.repo.commits('master', max_count=10)
+ commits = list( self.repo.iter_commits('master', max_count=10) )
c = commits[0]
assert_equal('4c8124ffcf4039d292442eeccabdeca5af5c5017', c.id)
@@ -73,8 +73,6 @@ class TestRepo(object):
assert_equal("4c8124ffcf4039d292442eeccabdeca5af5c5017", commit.id)
- assert_true(git.called)
-
@patch_object(Repo, '__init__')
@patch_object(Git, '_call_process')
def test_init_bare(self, git, repo):