allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hei...@apache.org
Subject [32/45] allura git commit: [#7837] ticket:736 Fix LCD tests
Date Wed, 01 Apr 2015 21:10:49 GMT
[#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 <jetmind2@gmail.com>
Authored: Mon Mar 2 17:39:43 2015 +0000
Committer: Dave Brondsema <dbrondsema@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


Mime
View raw message