Commit f32ed23e authored by Romain Courteaud's avatar Romain Courteaud

upgrade old data.fs: use UI callables

parent 45c2f135
......@@ -72,7 +72,22 @@ class TestUpgradeInstanceWithOldDataFs(ERP5TypeTestCase):
self.tic()
alarm = self.portal.portal_alarms.promise_check_upgrade
alarm.solve()
# Ensure it is viewable
alarm.view()
# Call active sense
alarm.activeSense()
self.tic()
self.assertNotEquals(alarm.getLastActiveProcess().getResultList(), [])
# Solve divergencies, like called from the form_dialog
alarm.Base_callDialogMehod(
form_id='Alarm_view',
selection_name='foobar',
dialog_id='Alarm_viewSolveDialog',
dialog_method='Alarm_solve'
)
# alarm.solve()
self.tic()
self.assertEquals(alarm.getLastActiveProcess().getResultList(), [])
......
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