Commit 59cce559 authored by Jérome Perrin's avatar Jérome Perrin

upgrader test: update stepCheckNoActivitiesCreated for new internals

now that we use alarm sense method, another `notify` call is activated
parent 2c07e3f6
...@@ -322,11 +322,12 @@ class TestUpgrader(ERP5TypeTestCase): ...@@ -322,11 +322,12 @@ class TestUpgrader(ERP5TypeTestCase):
def stepCheckNoActivitiesCreated(self, sequence=None): def stepCheckNoActivitiesCreated(self, sequence=None):
portal_activities = self.getActivityTool() portal_activities = self.getActivityTool()
message, = portal_activities.getMessageList() self.assertEqual({'Alarm_runUpgrader', 'notify'},
self.assertEqual(message.method_id, "Alarm_runUpgrader") {x.method_id for x in portal_activities.getMessageList()})
getTitleList = self.getTemplateTool().getInstalledBusinessTemplateTitleList getTitleList = self.getTemplateTool().getInstalledBusinessTemplateTitleList
self.assertNotIn('erp5_web', getTitleList()) self.assertNotIn('erp5_web', getTitleList())
portal_activities.manageInvoke(message.object_path, message.method_id) for message in portal_activities.getMessageList():
portal_activities.manageInvoke(message.object_path, message.method_id)
self.assertIn('erp5_web', getTitleList()) self.assertIn('erp5_web', getTitleList())
self.commit() self.commit()
self.assertEqual({'immediateReindexObject', 'unindexObject'}, self.assertEqual({'immediateReindexObject', 'unindexObject'},
...@@ -346,9 +347,10 @@ class TestUpgrader(ERP5TypeTestCase): ...@@ -346,9 +347,10 @@ class TestUpgrader(ERP5TypeTestCase):
def stepCheckActivitiesCreated(self, sequence=None): def stepCheckActivitiesCreated(self, sequence=None):
portal_activities = self.getActivityTool() portal_activities = self.getActivityTool()
message, = portal_activities.getMessageList() self.assertEqual({'Alarm_runUpgrader', 'notify'},
self.assertEqual(message.method_id, "Alarm_runUpgrader") {x.method_id for x in portal_activities.getMessageList()})
portal_activities.manageInvoke(message.object_path, message.method_id) for message in portal_activities.getMessageList():
portal_activities.manageInvoke(message.object_path, message.method_id)
self.commit() self.commit()
self.assertIn('Base_postCheckConsistencyResult', self.assertIn('Base_postCheckConsistencyResult',
{x.method_id for x in portal_activities.getMessageList()}) {x.method_id for x in portal_activities.getMessageList()})
......
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