Commit d91eb97f authored by Romain Courteaud's avatar Romain Courteaud

slapos_accounting: test: slapos_request_update_instance_tree_open_sale_order was dropped

parent f181e1c1
......@@ -106,44 +106,6 @@ if context.getTitle() == 'Not visited by %s':
return wrapped
return wrapper
class TestOpenSaleOrderAlarm(SlapOSTestCaseMixin):
def test_noOSO_newPerson(self):
person = self.portal.person_module.template_member\
.Base_createCloneDocument(batch_mode=1)
self.tic()
self.assertEqual(None, self.portal.portal_catalog.getResultValue(
portal_type='Open Sale Order',
default_destination_uid=person.getUid()
))
def test_noOSO_after_fixConsistency(self):
person = self.portal.person_module.template_member\
.Base_createCloneDocument(batch_mode=1)
self.tic()
person.fixConsistency()
self.tic()
self.assertEqual(None, self.portal.portal_catalog.getResultValue(
portal_type='Open Sale Order',
default_destination_uid=person.getUid()
))
@simulateByEditWorkflowMark('InstanceTree_requestUpdateOpenSaleOrder')
def test_alarm_HS_diverged(self):
subscription = self.portal.instance_tree_module\
.template_instance_tree.Base_createCloneDocument(batch_mode=1)
subscription.edit(reference='TESTHS-%s' % self.generateNewId())
self.tic()
self.portal.portal_alarms\
.slapos_request_update_instance_tree_open_sale_order\
.activeSense()
self.tic()
self.assertEqual(
'Visited by InstanceTree_requestUpdateOpenSaleOrder',
subscription.workflow_history['edit_workflow'][-1]['comment'])
class TestSlapOSTriggerBuildAlarm(SlapOSTestCaseMixin):
@simulateByTitlewMark('SimulationMovement_buildSlapOS')
......
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