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,10 +322,11 @@ class TestUpgrader(ERP5TypeTestCase):
def stepCheckNoActivitiesCreated(self, sequence=None):
portal_activities = self.getActivityTool()
message, = portal_activities.getMessageList()
self.assertEqual(message.method_id, "Alarm_runUpgrader")
self.assertEqual({'Alarm_runUpgrader', 'notify'},
{x.method_id for x in portal_activities.getMessageList()})
getTitleList = self.getTemplateTool().getInstalledBusinessTemplateTitleList
self.assertNotIn('erp5_web', getTitleList())
for message in portal_activities.getMessageList():
portal_activities.manageInvoke(message.object_path, message.method_id)
self.assertIn('erp5_web', getTitleList())
self.commit()
......@@ -346,8 +347,9 @@ class TestUpgrader(ERP5TypeTestCase):
def stepCheckActivitiesCreated(self, sequence=None):
portal_activities = self.getActivityTool()
message, = portal_activities.getMessageList()
self.assertEqual(message.method_id, "Alarm_runUpgrader")
self.assertEqual({'Alarm_runUpgrader', 'notify'},
{x.method_id for x in portal_activities.getMessageList()})
for message in portal_activities.getMessageList():
portal_activities.manageInvoke(message.object_path, message.method_id)
self.commit()
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