Commit 530379f1 authored by Jérome Perrin's avatar Jérome Perrin

don't use immediate reindex

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16008 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 430663f3
No related merge requests found
......@@ -232,7 +232,6 @@ class TestHR(ERP5TypeTestCase):
category_type = 'Category'
base_path_obj.newContent( portal_type = category_type
, id = category_id
, immediate_reindex = 1
)
base_path_obj = base_path_obj[category_id]
is_base_category = False
......@@ -273,7 +272,6 @@ class TestHR(ERP5TypeTestCase):
portal_type = 'Organisation'
organisation_module = self.portal.getDefaultModule(portal_type)
organisation = organisation_module.newContent(portal_type=portal_type,
immediate_reindex=1,
title='A new organisation')
sequence.edit(organisation = organisation)
......@@ -469,7 +467,6 @@ class TestHR(ERP5TypeTestCase):
portal_type = 'Person'
person_module = self.portal.getDefaultModule(portal_type)
person = person_module.newContent( portal_type = portal_type
, immediate_reindex = 1
)
sequence.edit(person = person)
......
......@@ -188,15 +188,21 @@ class TestXMLMatrix(ERP5TypeTestCase):
self.assertEqual(getattr(cell, 'test_id', None), value_list[i])
i += 1
def checkSetCellRangeAndCatalog(self,active=1):
def checkSetCellRangeAndCatalog(self, active=1):
"""
Tests if set Cell range do well catalog and uncatalog
"""
portal = self.getPortal()
module = portal.purchase_order_module
if not active:
# FIXME: deleting portal_activities prevent from running another test
# after this one (because this methods commits the transaction)
portal._delObject('portal_activities')
module = portal.purchase_order_module
module.recursiveImmediateReindexObject()
module.recursiveImmediateReindexObject()
else:
module.recursiveReindexObject()
get_transaction().commit()
self.tic()
catalog = portal.portal_catalog
order = module._getOb('1')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment