You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by jo...@apache.org on 2012/12/04 00:57:05 UTC

[7/10] git commit: [#5037] ticket:202 expand a test for the git implementation

[#5037] ticket:202 expand a test for the git implementation


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/0151c0e6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/0151c0e6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/0151c0e6

Branch: refs/heads/master
Commit: 0151c0e695ba9593c1b5ca7af6b2abd3cc46d539
Parents: e7cd071
Author: Igor Bondarenko <je...@gmail.com>
Authored: Tue Nov 6 12:19:47 2012 +0000
Committer: Cory Johns <jo...@geek.net>
Committed: Mon Dec 3 23:56:22 2012 +0000

----------------------------------------------------------------------
 ForgeGit/forgegit/tests/model/test_repository.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/0151c0e6/ForgeGit/forgegit/tests/model/test_repository.py
----------------------------------------------------------------------
diff --git a/ForgeGit/forgegit/tests/model/test_repository.py b/ForgeGit/forgegit/tests/model/test_repository.py
index c5e57f3..fc49ebe 100644
--- a/ForgeGit/forgegit/tests/model/test_repository.py
+++ b/ForgeGit/forgegit/tests/model/test_repository.py
@@ -257,8 +257,10 @@ class TestGitCommit(unittest.TestCase):
     def test_commits(self):
         # path only
         commits = self.repo.commits()
+        assert len(commits) == 4, 'Returned %s commits' % len(commits)
         assert "9a7df788cf800241e3bb5a849c8870f2f8259d98" in commits, commits
         commits = self.repo.commits('README')
+        assert len(commits) == 2, 'Returned %s README commits' % len(commits)
         assert "1e146e67985dcd71c74de79613719bef7bddca4a" in commits, commits
         assert "df30427c488aeab84b2352bdf88a3b19223f9d7a" in commits, commits
         assert self.repo.commits('does/not/exist') == []