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
...@@ -232,7 +232,6 @@ class TestHR(ERP5TypeTestCase): ...@@ -232,7 +232,6 @@ class TestHR(ERP5TypeTestCase):
category_type = 'Category' category_type = 'Category'
base_path_obj.newContent( portal_type = category_type base_path_obj.newContent( portal_type = category_type
, id = category_id , id = category_id
, immediate_reindex = 1
) )
base_path_obj = base_path_obj[category_id] base_path_obj = base_path_obj[category_id]
is_base_category = False is_base_category = False
...@@ -273,7 +272,6 @@ class TestHR(ERP5TypeTestCase): ...@@ -273,7 +272,6 @@ class TestHR(ERP5TypeTestCase):
portal_type = 'Organisation' portal_type = 'Organisation'
organisation_module = self.portal.getDefaultModule(portal_type) organisation_module = self.portal.getDefaultModule(portal_type)
organisation = organisation_module.newContent(portal_type=portal_type, organisation = organisation_module.newContent(portal_type=portal_type,
immediate_reindex=1,
title='A new organisation') title='A new organisation')
sequence.edit(organisation = organisation) sequence.edit(organisation = organisation)
...@@ -469,7 +467,6 @@ class TestHR(ERP5TypeTestCase): ...@@ -469,7 +467,6 @@ class TestHR(ERP5TypeTestCase):
portal_type = 'Person' portal_type = 'Person'
person_module = self.portal.getDefaultModule(portal_type) person_module = self.portal.getDefaultModule(portal_type)
person = person_module.newContent( portal_type = portal_type person = person_module.newContent( portal_type = portal_type
, immediate_reindex = 1
) )
sequence.edit(person = person) sequence.edit(person = person)
......
...@@ -188,15 +188,21 @@ class TestXMLMatrix(ERP5TypeTestCase): ...@@ -188,15 +188,21 @@ class TestXMLMatrix(ERP5TypeTestCase):
self.assertEqual(getattr(cell, 'test_id', None), value_list[i]) self.assertEqual(getattr(cell, 'test_id', None), value_list[i])
i += 1 i += 1
def checkSetCellRangeAndCatalog(self,active=1): def checkSetCellRangeAndCatalog(self, active=1):
""" """
Tests if set Cell range do well catalog and uncatalog Tests if set Cell range do well catalog and uncatalog
""" """
portal = self.getPortal() portal = self.getPortal()
module = portal.purchase_order_module
if not active: 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') 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 catalog = portal.portal_catalog
order = module._getOb('1') 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