You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by he...@apache.org on 2015/04/01 23:10:58 UTC

[41/45] allura git commit: [#7837] ticket:750 Fix tests

[#7837] ticket:750 Fix tests


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

Branch: refs/heads/hss/7072
Commit: 710df69e3276b3b0d9d7e084c7bdf30700d596c2
Parents: 44dda6b
Author: Igor Bondarenko <je...@gmail.com>
Authored: Mon Mar 30 11:25:15 2015 +0000
Committer: Dave Brondsema <db...@slashdotmedia.com>
Committed: Mon Mar 30 19:20:42 2015 +0000

----------------------------------------------------------------------
 ForgeSVN/forgesvn/tests/model/test_repository.py | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/710df69e/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 8fa8314..92ccaf5 100644
--- a/ForgeSVN/forgesvn/tests/model/test_repository.py
+++ b/ForgeSVN/forgesvn/tests/model/test_repository.py
@@ -405,12 +405,10 @@ class TestSVNRepo(unittest.TestCase, RepoImplTestBase):
                 removed=['/a/b/c/hello.txt'], added=[], total=1))
 
     def test_diff_copy(self):
-        # Copies are currently only detected as 'add'
         entry = self.repo.commit(self.repo.log(5, id_only=True).next())
-        self.assertEqual(
-            entry.diffs, dict(
-                copied=[], changed=[],
-                removed=[], added=['/b'], total=1))
+        assert_equals(dict(entry.diffs), dict(
+                copied=[{'new': u'/b', 'old': u'/a', 'diff': '', 'ratio': 1}],
+                changed=[], removed=[], added=[], total=1))
 
     def test_commit(self):
         entry = self.repo.commit(1)
@@ -609,10 +607,12 @@ class TestSVNRepo(unittest.TestCase, RepoImplTestBase):
                 'committer': {'name': u'rick446',
                               'email': u'',
                               'username': u''},
-                'added': [u'/b'],
+                'added': [],
                 'removed': [],
                 'modified': [],
-                'copied': []
+                'copied': [
+                    {'new': u'/b', 'old': u'/a', 'diff': '', 'ratio': 1},
+                ],
             }],
             'repository': {
                 'name': u'SVN',