incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject git commit: [#6068] fix paged_diffs return value when no DiffInfoDoc found
Date Mon, 08 Apr 2013 17:17:31 GMT
Updated Branches:
  refs/heads/db/6068 [created] 5bc575250


[#6068] fix paged_diffs return value when no DiffInfoDoc found


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

Branch: refs/heads/db/6068
Commit: 5bc575250dadb93386a26c452b3b765084254a3e
Parents: b08571f
Author: Dave Brondsema <dbrondsema@slashdotmedia.com>
Authored: Mon Apr 8 13:17:26 2013 -0400
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Mon Apr 8 13:17:26 2013 -0400

----------------------------------------------------------------------
 ForgeSVN/forgesvn/tests/model/test_repository.py |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/5bc57525/ForgeSVN/forgesvn/tests/model/test_repository.py
----------------------------------------------------------------------
diff --git a/ForgeSVN/forgesvn/tests/model/test_repository.py b/ForgeSVN/forgesvn/tests/model/test_repository.py
index 676a887..77d19f1 100644
--- a/ForgeSVN/forgesvn/tests/model/test_repository.py
+++ b/ForgeSVN/forgesvn/tests/model/test_repository.py
@@ -209,7 +209,11 @@ class TestSVNRepo(unittest.TestCase, RepoImplTestBase):
         expected =  dict(
                 copied=[], changed=[], removed=[],
                 added=['/a/b', '/a/b/c'], total=4)
-        self.assertEqual(expected, entry.paged_diffs(start=1, end=3))
+        actual = entry.paged_diffs(start=1, end=3)
+        self.assertEqual(expected, actual)
+
+        empty = M.Commit().paged_diffs()
+        self.assertEqual(actual.keys(), empty.keys())
 
     def test_diff_create_file(self):
         entry = self.repo.log(1, limit=1)[0]


Mime
View raw message