allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject git commit: [#6362] ticket:378 Make diffs in svn tests order-agnostic
Date Wed, 26 Jun 2013 21:27:40 GMT
Updated Branches:
  refs/heads/master 102791903 -> b970970b2


[#6362] ticket:378 Make diffs in svn tests order-agnostic


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

Branch: refs/heads/master
Commit: b970970b25282ff0283f891ce5350d1ba75debc3
Parents: 1027919
Author: Igor Bondarenko <jetmind2@gmail.com>
Authored: Fri Jun 21 14:36:51 2013 +0300
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Wed Jun 26 21:27:15 2013 +0000

----------------------------------------------------------------------
 ForgeSVN/forgesvn/tests/model/test_repository.py | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/b970970b/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 ddc6c75..c7acfcf 100644
--- a/ForgeSVN/forgesvn/tests/model/test_repository.py
+++ b/ForgeSVN/forgesvn/tests/model/test_repository.py
@@ -237,9 +237,10 @@ class TestSVNRepo(unittest.TestCase, RepoImplTestBase):
         entry = self.repo.log(2, limit=1)[0]
         self.assertEqual(entry.diffs, entry.paged_diffs())
         self.assertEqual(entry.diffs, entry.paged_diffs(start=0))
+        added_expected = entry.diffs.added[1:3]
         expected =  dict(
                 copied=[], changed=[], removed=[],
-                added=['/a/b', '/a/b/c'], total=4)
+                added=added_expected, total=4)
         actual = entry.paged_diffs(start=1, end=3)
         self.assertEqual(expected, actual)
 
@@ -255,12 +256,14 @@ class TestSVNRepo(unittest.TestCase, RepoImplTestBase):
 
     def test_diff_create_path(self):
         entry = self.repo.log(2, limit=1)[0]
+        actual = entry.diffs
+        actual.added = sorted(actual.added)
         self.assertEqual(
             entry.diffs, dict(
                 copied=[], changed=[], removed=[],
-                added=[
+                added=sorted([
                     '/a', '/a/b', '/a/b/c',
-                    '/a/b/c/hello.txt'], total=4))
+                    '/a/b/c/hello.txt']), total=4))
 
     def test_diff_modify_file(self):
         entry = self.repo.log(3, limit=1)[0]


Mime
View raw message