Commit 99690842 authored by Aurel's avatar Aurel

commit and execute after alarm creation to make created script available


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18639 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4fdc5b82
...@@ -419,6 +419,8 @@ class TestAlarm(ERP5TypeTestCase): ...@@ -419,6 +419,8 @@ class TestAlarm(ERP5TypeTestCase):
skin_folder[sense_method_id].ZPythonScript_edit('*args,**kw', 'raise Exception') skin_folder[sense_method_id].ZPythonScript_edit('*args,**kw', 'raise Exception')
del skin_folder del skin_folder
alarm = self.newAlarm() alarm = self.newAlarm()
get_transaction().commit()
self.tic()
now = DateTime() now = DateTime()
alarm.setActiveSenseMethodId(sense_method_id) alarm.setActiveSenseMethodId(sense_method_id)
self.assertEquals(alarm.isActive(), 0) self.assertEquals(alarm.isActive(), 0)
......
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