Commit d996e519 authored by Romain Courteaud's avatar Romain Courteaud

test: always create open order before trying to allocate

parent c19ea8ac
...@@ -65,6 +65,15 @@ class testSlapOSMixin(ERP5TypeTestCase): ...@@ -65,6 +65,15 @@ class testSlapOSMixin(ERP5TypeTestCase):
setattr(self, 'stepCall' + convertToUpperCase(alarm.getId()) \ setattr(self, 'stepCall' + convertToUpperCase(alarm.getId()) \
+ 'Alarm', makeCallAlarm(alarm)) + 'Alarm', makeCallAlarm(alarm))
# Compatibility
# Ensure Open Order are created before doing allocation
self.oldStepCallSlaposAllocateInstanceAlarm = self.stepCallSlaposAllocateInstanceAlarm
def newStepCallSlaposAllocateInstanceAlarm():
self.stepCallSlaposRequestUpdateInstanceTreeOpenSaleOrderAlarm()
self.tic()
self.oldStepCallSlaposAllocateInstanceAlarm()
self.stepCallSlaposAllocateInstanceAlarm = newStepCallSlaposAllocateInstanceAlarm
def createCertificateAuthorityFile(self): def createCertificateAuthorityFile(self):
"""Sets up portal_certificate_authority""" """Sets up portal_certificate_authority"""
......
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