Commit 9b97cdc5 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 090e4063
...@@ -332,10 +332,11 @@ class TestUpgrader(ERP5TypeTestCase): ...@@ -332,10 +332,11 @@ 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())
for message in portal_activities.getMessageList():
portal_activities.manageInvoke(message.object_path, message.method_id) portal_activities.manageInvoke(message.object_path, message.method_id)
self.assertIn('erp5_web', getTitleList()) self.assertIn('erp5_web', getTitleList())
self.commit() self.commit()
...@@ -356,8 +357,9 @@ class TestUpgrader(ERP5TypeTestCase): ...@@ -356,8 +357,9 @@ 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()})
for message in portal_activities.getMessageList():
portal_activities.manageInvoke(message.object_path, message.method_id) portal_activities.manageInvoke(message.object_path, message.method_id)
self.commit() self.commit()
self.assertIn('Base_postCheckConsistencyResult', self.assertIn('Base_postCheckConsistencyResult',
......
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