allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [14/17] allura git commit: [#7837] ticket:750 Fix tests
Date Mon, 30 Mar 2015 19:30:39 GMT
[#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/master
Commit: 710df69e3276b3b0d9d7e084c7bdf30700d596c2
Parents: 44dda6b
Author: Igor Bondarenko <jetmind2@gmail.com>
Authored: Mon Mar 30 11:25:15 2015 +0000
Committer: Dave Brondsema <dbrondsema@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',


Mime
View raw message