Commit 5faae785 authored by Romain Courteaud's avatar Romain Courteaud

Check that contribution tool is correctly indexed after business template installation.

Check that contribution tool is correctly indexed by ERP5Site_reindexAll.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31642 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d353fed4
...@@ -42,6 +42,7 @@ from Products.ERP5Type.tests.Sequence import SequenceList ...@@ -42,6 +42,7 @@ from Products.ERP5Type.tests.Sequence import SequenceList
from Products.ERP5Type.tests.utils import FileUpload from Products.ERP5Type.tests.utils import FileUpload
from Products.ERP5OOo.Document.OOoDocument import ConversionError from Products.ERP5OOo.Document.OOoDocument import ConversionError
from zLOG import LOG, INFO, ERROR from zLOG import LOG, INFO, ERROR
from Products.CMFCore.utils import getToolByName
# Define the conversion server host # Define the conversion server host
conversion_server_host = ('127.0.0.1', 8008) conversion_server_host = ('127.0.0.1', 8008)
...@@ -1406,6 +1407,31 @@ class TestIngestion(ERP5TypeTestCase): ...@@ -1406,6 +1407,31 @@ class TestIngestion(ERP5TypeTestCase):
] ]
self.playSequence(step_list, quiet) self.playSequence(step_list, quiet)
def test_14_ContributionToolIndexation(self, quiet=QUIET, run=RUN_ALL_TEST):
"""
Check that contribution tool is correctly indexed after business template
installation.
Check that contribution tool is correctly indexed by ERP5Site_reindexAll.
"""
portal = self.portal
contribution_tool = getToolByName(portal, 'portal_contributions')
self.assertEquals(1,
len(portal.portal_catalog(path=contribution_tool.getPath())))
# Clear catalog
portal_catalog = self.getCatalogTool()
portal_catalog.manage_catalogClear()
# Commit
transaction.commit()
# Reindex all
portal.ERP5Site_reindexAll()
transaction.commit()
self.tic()
transaction.commit()
self.assertEquals(1,
len(portal.portal_catalog(path=contribution_tool.getPath())))
# Missing tests # Missing tests
""" """
property_dict = context.getPropertyDictFromUserLogin() property_dict = context.getPropertyDictFromUserLogin()
......
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