You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2014/05/21 16:44:55 UTC
[07/20] git commit: [#7257] ticket:562 Fixed tests
[#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 <fe...@gmail.com>
Authored: Thu Apr 3 16:20:11 2014 +0300
Committer: Dave Brondsema <db...@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