Commit 9915a1df authored by Jérome Perrin's avatar Jérome Perrin

call self.portal.portal_activities.manageClearActivities not to leave any failed messages


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19050 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e6110f2d
......@@ -63,7 +63,7 @@ class TestAlarm(ERP5TypeTestCase):
def getTitle(self):
return "Alarm"
def afterSetUp(self, quiet=1, run=1):
def afterSetUp(self):
self.login()
def newAlarm(self):
......@@ -398,6 +398,7 @@ class TestAlarm(ERP5TypeTestCase):
message = 'Test Failed Alarms Do Not Block Future Alarms'
ZopeTestCase._print('\n%s ' % message)
LOG('Testing... ',0,message)
try:
sense_method_id = 'Alarm_testSenseMethod'
skin_folder_id = 'custom'
skin_folder = self.getPortal().portal_skins[skin_folder_id]
......@@ -438,6 +439,8 @@ class TestAlarm(ERP5TypeTestCase):
raise Exception, 'Tic did not raise though activity was supposed to fail'
# Chen that the second alarm execution did happen
self.assertNotEquals(alarm.getLastActiveProcess(), None)
finally:
self.portal.portal_activities.manageClearActivities(keep=0)
def test_16_uncatalog(self, quiet=0, run=run_all_test):
"""
......
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