allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [06/18] git commit: [#7257] ticket:562 Fixed tests
Date Fri, 09 May 2014 21:42:26 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/d06823f9
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/d06823f9
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/d06823f9

Branch: refs/heads/db/7257
Commit: d06823f9281046b72cad67042340b57eaf7920e9
Parents: bda37b7
Author: Ferens Dmitriy <ferensdima@gmail.com>
Authored: Thu Apr 3 16:20:11 2014 +0300
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Fri May 9 18:56:47 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/d06823f9/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/d06823f9/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