summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2009-10-15 12:09:16 +0200
committerSebastian Thiel <byronimo@gmail.com>2009-10-15 12:09:29 +0200
commit2da2b90e6930023ec5739ae0b714bbdb30874583 (patch)
tree506303c27732783c4a06cfd4fe8cf62d63bd42e7 /test
parent58d692e2a1d7e3894dbed68efbcf7166d6ec3fb7 (diff)
downloadgitpython-2da2b90e6930023ec5739ae0b714bbdb30874583.tar.gz
repo: removed a few methods because of redundancy or because it will be obsolete once the interface overhaul is finished. This commit is just intermediate
Diffstat (limited to 'test')
-rw-r--r--test/git/test_commit.py3
-rw-r--r--test/git/test_repo.py9
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'))