You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by je...@apache.org on 2015/03/30 14:26:50 UTC

[34/45] allura git commit: [#7837] ticket:736 Fix LCD tests

[#7837] ticket:736 Fix LCD tests


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

Branch: refs/heads/ib/7837
Commit: 403c8c42c71d40d2d17ad79fc5ba446ff13f592c
Parents: 40b1e8b
Author: Igor Bondarenko <je...@gmail.com>
Authored: Mon Mar 2 17:39:43 2015 +0000
Committer: Igor Bondarenko <je...@gmail.com>
Committed: Fri Mar 27 15:09:24 2015 +0000

----------------------------------------------------------------------
 Allura/allura/tests/model/test_repo.py | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/403c8c42/Allura/allura/tests/model/test_repo.py
----------------------------------------------------------------------
diff --git a/Allura/allura/tests/model/test_repo.py b/Allura/allura/tests/model/test_repo.py
index 669f940..8b406da 100644
--- a/Allura/allura/tests/model/test_repo.py
+++ b/Allura/allura/tests/model/test_repo.py
@@ -136,7 +136,16 @@ class TestLastCommit(unittest.TestCase):
         setup_basic_test()
         setup_global_objects()
         self.repo = mock.Mock(
-            'repo', _commits=OrderedDict(), _last_commit=None)
+            name='repo',
+            _commits=OrderedDict(),
+            _last_commit=None,
+            spec=M.Repository)
+        self.repo.paged_diffs.return_value = {
+            'added': [],
+            'removed': [],
+            'changed': [],
+            'total': 0,
+        }
         self.repo.shorthand_for_commit = lambda _id: _id[:6]
         self.repo.rev_to_commit_id = lambda rev: rev
         self.repo.log = self._log