allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [07/20] git commit: [#7257] ticket:562 Fixed tests
Date Wed, 21 May 2014 14:44:55 GMT
[#7257] ticket:562 Fixed tests


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

Branch: refs/heads/master
Commit: acbdebff70349fbf68e8bacf6b8d176ada051145
Parents: 0df1dea
Author: Ferens Dmitriy <ferensdima@gmail.com>
Authored: Thu Apr 3 16:20:11 2014 +0300
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Wed May 21 14:44:20 2014 +0000

----------------------------------------------------------------------
 Allura/allura/tasks/index_tasks.py | 1 +
 Allura/allura/tests/test_tasks.py  | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/acbdebff/Allura/allura/tasks/index_tasks.py
----------------------------------------------------------------------
diff --git a/Allura/allura/tasks/index_tasks.py b/Allura/allura/tasks/index_tasks.py
index 31f5dc7..badb59e 100644
--- a/Allura/allura/tasks/index_tasks.py
+++ b/Allura/allura/tasks/index_tasks.py
@@ -30,6 +30,7 @@ log = logging.getLogger(__name__)
 
 
 class GenericIndexHandler(object):
+
     _instance = None
 
     def __new__(cls):

http://git-wip-us.apache.org/repos/asf/allura/blob/acbdebff/Allura/allura/tests/test_tasks.py
----------------------------------------------------------------------
diff --git a/Allura/allura/tests/test_tasks.py b/Allura/allura/tests/test_tasks.py
index 04e03c2..4e56590 100644
--- a/Allura/allura/tests/test_tasks.py
+++ b/Allura/allura/tests/test_tasks.py
@@ -102,9 +102,10 @@ class TestIndexTasks(unittest.TestCase):
         setup_global_objects()
 
     def test_add_projects(self):
+        g.solr.db.clear()
         old_solr_size = len(g.solr.db)
         projects = M.Project.query.find().all()
-        index_tasks.add_projects([p._id for p in projects])
+        index_tasks.add_projects.post([p._id for p in projects])
         new_solr_size = len(g.solr.db)
         assert old_solr_size + len(projects) == new_solr_size
 


Mime
View raw message