allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject git commit: [#5781] Fixed failing LastCommit tests
Date Fri, 08 Feb 2013 20:57:13 GMT
Updated Branches:
  refs/heads/cj/5781 2d486c0ac -> 09777b265


[#5781] Fixed failing LastCommit tests

Signed-off-by: Cory Johns <johnsca@geek.net>


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

Branch: refs/heads/cj/5781
Commit: 09777b265732c179b9499f54db48cdb067b238ce
Parents: 2d486c0
Author: Cory Johns <johnsca@geek.net>
Authored: Fri Feb 8 20:56:54 2013 +0000
Committer: Cory Johns <johnsca@geek.net>
Committed: Fri Feb 8 20:56:54 2013 +0000

----------------------------------------------------------------------
 Allura/allura/tests/model/test_repo.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/09777b26/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 81637a0..bba9042 100644
--- a/Allura/allura/tests/model/test_repo.py
+++ b/Allura/allura/tests/model/test_repo.py
@@ -128,6 +128,7 @@ class TestLastCommit(unittest.TestCase):
                 repo=self.repo,
             )
         commit.tree = self._build_tree(commit, '/', tree_paths)
+        commit.get_tree = lambda c: commit.tree
         diffinfo = M.repo.DiffInfoDoc(dict(
                 _id=commit._id,
                 differences=[{'name': p} for p in diff_paths or tree_paths],


Mime
View raw message