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

Cover errors in case of software cleanup.

parent 63123619
...@@ -154,6 +154,115 @@ class TestVifibSlapSoftwareReleaseError(TestVifibSlapWebServiceMixin): ...@@ -154,6 +154,115 @@ class TestVifibSlapSoftwareReleaseError(TestVifibSlapWebServiceMixin):
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
sequence_list.play(self) sequence_list.play(self)
def test_SoftwareRelease_error_CleanupResource_ConfirmedState(self):
sequence_list = SequenceList()
sequence_string = self.prepare_software_release_cleanup_purchase_packing_list + '\
SlapLoginCurrentComputer \
CheckSuccessSoftwareReleaseErrorCall \
Tic \
SlapLogout \
LoginDefaultUser \
CheckPurchasePackingListErrorText \
CheckConfirmedPurchasePackingList \
Logout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_SoftwareRelease_error_CleanupResource_CancelledState(self):
sequence_list = SequenceList()
sequence_string = self.prepare_software_release_cleanup_purchase_packing_list + '\
LoginDefaultUser \
CancelPurchasePackingList \
Tic \
Logout \
SlapLoginCurrentComputer \
CheckSoftwareReleaseErrorCall \
Tic \
SlapLogout \
LoginDefaultUser \
CheckPurchasePackingListNoErrorText \
CheckCancelledPurchasePackingList \
Logout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_SoftwareRelease_error_CleanupResource_StartedState(self):
sequence_list = SequenceList()
sequence_string = self.prepare_software_release_cleanup_purchase_packing_list + '\
LoginDefaultUser \
StartPurchasePackingList \
Tic \
Logout \
SlapLoginCurrentComputer \
CheckSuccessSoftwareReleaseErrorCall \
Tic \
SlapLogout \
LoginDefaultUser \
CheckPurchasePackingListErrorText \
CheckStartedPurchasePackingList \
Logout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_SoftwareRelease_error_CleanupResource_StoppedState(self):
sequence_list = SequenceList()
sequence_string = self.prepare_software_release_cleanup_purchase_packing_list + '\
LoginDefaultUser \
StartPurchasePackingList \
StopPurchasePackingList \
Tic \
Logout \
SlapLoginCurrentComputer \
CheckSoftwareReleaseErrorCall \
Tic \
SlapLogout \
LoginDefaultUser \
CheckPurchasePackingListNoErrorText \
CheckStoppedPurchasePackingList \
Logout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_SoftwareRelease_error_CleanupResource_DeliveredState(self):
sequence_list = SequenceList()
sequence_string = self.prepare_software_release_cleanup_purchase_packing_list + '\
LoginDefaultUser \
StartPurchasePackingList \
StopPurchasePackingList \
DeliverPurchasePackingList \
Tic \
Logout \
SlapLoginCurrentComputer \
CheckSoftwareReleaseErrorCall \
Tic \
SlapLogout \
LoginDefaultUser \
CheckPurchasePackingListNoErrorText \
CheckDeliveredPurchasePackingList \
Logout \
LoginERP5TypeTestCase \
CheckSiteConsistency \
Logout \
'
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_SoftwareRelease_error_twoPurchasePackingList(self): def test_SoftwareRelease_error_twoPurchasePackingList(self):
""" """
Check that calling SoftwareRelease.error uses the latest purchase packing Check that calling SoftwareRelease.error uses the latest purchase packing
......
...@@ -1016,6 +1016,10 @@ class TestVifibSlapWebServiceMixin(testVifibMixin): ...@@ -1016,6 +1016,10 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
prepare_published_software_release + prepare_formated_computer + \ prepare_published_software_release + prepare_formated_computer + \
prepare_software_release_confirmed_packing_list prepare_software_release_confirmed_packing_list
prepare_software_release_cleanup_purchase_packing_list = \
prepare_published_software_release + prepare_formated_computer + \
prepare_software_release_cleanup_confirmed_packing_list
prepare_software_release_purchase_packing_list_accounting_resource = \ prepare_software_release_purchase_packing_list_accounting_resource = \
prepare_published_software_release + prepare_formated_computer + """ prepare_published_software_release + prepare_formated_computer + """
LoginDefaultUser LoginDefaultUser
......
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