diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/git/test_commit.py | 3 | ||||
-rw-r--r-- | test/git/test_repo.py | 9 |
2 files changed, 3 insertions, 9 deletions
diff --git a/test/git/test_commit.py b/test/git/test_commit.py index a95fb675..46aff635 100644 --- a/test/git/test_commit.py +++ b/test/git/test_commit.py @@ -215,6 +215,9 @@ class TestCommit(object): for sha1, commit in zip(expected_ids, commits): assert_equal(sha1, commit.id) + def test_count(self): + assert Commit.count( self.repo, '0.1.5' ) == 141 + def test_str(self): commit = Commit(self.repo, id='abc') assert_equal ("abc", str(commit)) diff --git a/test/git/test_repo.py b/test/git/test_repo.py index 918e4769..24a13ed1 100644 --- a/test/git/test_repo.py +++ b/test/git/test_repo.py @@ -66,15 +66,6 @@ class TestRepo(object): assert_true(git.called) @patch_object(Git, '_call_process') - def test_commit_count(self, git): - git.return_value = fixture('rev_list_count') - - assert_equal(655, self.repo.commit_count('master')) - - assert_true(git.called) - assert_equal(git.call_args, (('rev_list', 'master', '--', ''), {})) - - @patch_object(Git, '_call_process') def test_commit(self, git): git.return_value = ListProcessAdapter(fixture('rev_list_single')) |