Commit c76a65cc authored by Łukasz Nowak's avatar Łukasz Nowak

Follow reality of global builders.

They are called in any moment, between tics. So trigger builder during tic in
order to be closer to real site.
parent 7c12795f
......@@ -328,3 +328,23 @@ class testVifibMixin(ERP5TypeTestCase):
def stepLogout(self, **kw):
self.logout()
def stepTriggerBuild(self, **kw):
self.portal.portal_alarms.vifib_trigger_build.activeSense()
def stepTic(self, **kw):
if kw.get('sequence', None) is None:
# in case of using not in sequence commit transaction
transaction.commit()
# trigger build before tic
self.stepTriggerBuild(**kw)
transaction.commit()
super(testVifibMixin, self).stepTic(**kw)
# retrigger build after tic
self.stepTriggerBuild(**kw)
transaction.commit()
# tic after build
super(testVifibMixin, self).stepTic(**kw)
......@@ -7,9 +7,6 @@ from testVifibOpenOrderSimulation import generateTimeFrameList
class TestVifibInstanceHostingRelatedDocument(TestVifibSlapWebServiceMixin):
def stepTriggerBuild(self, sequence, **kw):
self.portal.portal_alarms.vifib_trigger_build.activeSense()
def stepCheckSubscriptionSalePackingListCoverage(self, sequence, **kw):
hosting_subscription = self.portal.portal_catalog.getResultValue(
uid=sequence['hosting_subscription_uid'])
......
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