From 1abd03a4c950d6a7c052a5ef1fc77fc318f36618 Mon Sep 17 00:00:00 2001 From: Rafael Monnerat <rafael@nexedi.com> Date: Tue, 8 Jun 2010 18:29:49 +0000 Subject: [PATCH] Check if Folder_reindexAll Activities are created after use update_catalog=1. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36111 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/tests/testBusinessTemplate.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/product/ERP5/tests/testBusinessTemplate.py b/product/ERP5/tests/testBusinessTemplate.py index 9c36c2a2e2..091468ad63 100644 --- a/product/ERP5/tests/testBusinessTemplate.py +++ b/product/ERP5/tests/testBusinessTemplate.py @@ -2644,6 +2644,15 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): and m.kw.get('uid') is not None ] self.assertEquals(len(message_list), 0) + def stepCheckFolderReindexActivityPresence(self, sequence=None, sequence_list=None, **kw): + """ + Check if we have activity for Folder_reindexAll. + """ + message_list = [ m for m in self.portal.portal_activities.getMessageList() + if m.method_id == 'Folder_reindexAll'] + self.assertNotEquals(len(message_list), 0) + + def stepCheckPathNotUnindexAfterBuild(self, sequence=None, sequence_list=None, **kw): """ Check that after a build, not unindex has been done @@ -3078,6 +3087,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): CheckBuiltBuildingState \ CheckNotInstalledInstallationState \ InstallWithoutForceBusinessTemplate \ + CheckFolderReindexActivityPresence \ Tic \ CheckInstalledInstallationState \ CheckBuiltBuildingState \ @@ -3861,7 +3871,9 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): CheckNotInstalledInstallationState \ CheckPreinstallReturnSomething \ CheckCatalogPreinstallReturnCatalogMethod \ + Tic \ InstallWithoutForceBusinessTemplate \ + CheckFolderReindexActivityPresence \ Tic \ CheckInstalledInstallationState \ CheckBuiltBuildingState \ @@ -5208,6 +5220,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ImportBusinessTemplate \ UseImportBusinessTemplate \ InstallWithoutForceBusinessTemplate \ + CheckFolderReindexActivityPresence \ Tic \ \ CheckFormGroups \ @@ -5221,7 +5234,9 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): \ ImportBusinessTemplate \ UseImportBusinessTemplate \ + Tic \ InstallWithoutForceBusinessTemplate \ + CheckFolderReindexActivityPresence \ Tic \ \ CheckFormGroups \ -- 2.30.9