Commit 248eb9e8 authored by Łukasz Nowak's avatar Łukasz Nowak

Call builder outsite of activities.

Activities can be called randomly, so instead of registering building process
invoke it.
parent 937df563
......@@ -333,21 +333,21 @@ class testVifibMixin(ERP5TypeTestCase):
self.portal.portal_alarms.vifib_trigger_build.activeSense()
def stepTic(self, **kw):
def build(**kw):
def build():
if 'vifib_trigger_build' in self.portal.portal_alarms.objectIds():
self.stepTriggerBuild(**kw)
self.portal.portal_alarms.vifib_trigger_build.Alarm_buildVifibPath()
if kw.get('sequence', None) is None:
# in case of using not in sequence commit transaction
transaction.commit()
# trigger build before tic
build(**kw)
build()
transaction.commit()
super(testVifibMixin, self).stepTic(**kw)
# retrigger build after tic
build(**kw)
build()
transaction.commit()
# tic after build
......
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