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/05 11:35:35 UTC
[08/13] 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/0843d535
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/0843d535
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/0843d535
Branch: refs/heads/ib/7837
Commit: 0843d535fb464d9c0cff037aa695896b4a76c03d
Parents: d9a1367
Author: Igor Bondarenko <je...@gmail.com>
Authored: Mon Mar 2 17:39:43 2015 +0000
Committer: Igor Bondarenko <je...@gmail.com>
Committed: Wed Mar 4 16:58:38 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/0843d535/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 9e2af07..9d65c20 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