You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by he...@apache.org on 2015/04/01 23:10:49 UTC

[32/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/9857cdb0
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/9857cdb0
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/9857cdb0

Branch: refs/heads/hss/7072
Commit: 9857cdb098e04a7bba6a27f9c92e346ea120d462
Parents: a2c5446
Author: Igor Bondarenko <je...@gmail.com>
Authored: Mon Mar 2 17:39:43 2015 +0000
Committer: Dave Brondsema <db...@slashdotmedia.com>
Committed: Mon Mar 30 19:20:41 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/9857cdb0/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