Commit 18f8ae5e authored by Vincent Pelletier's avatar Vincent Pelletier

A few mode sequence cleanups, thanks to Julien for advice.

Also, remove some empty space at line end.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44641 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 97648cbc
...@@ -106,11 +106,11 @@ class TestERP5BankingCashMovementNewNotEmitted(TestERP5BankingMonetaryReceptionM ...@@ -106,11 +106,11 @@ class TestERP5BankingCashMovementNewNotEmitted(TestERP5BankingMonetaryReceptionM
self.assertEqual(self.cash_movement_module.getPortalType(), 'Cash Movement New Not Emitted Module') self.assertEqual(self.cash_movement_module.getPortalType(), 'Cash Movement New Not Emitted Module')
self.assertEqual(len(self.cash_movement_module.objectValues()), 0) self.assertEqual(len(self.cash_movement_module.objectValues()), 0)
def stepCreateCashMovement(self, sequence=None, sequence_list=None, def stepCreateCashMovement(self, sequence=None, sequence_list=None,
none_destination=0, **kwd): none_destination=0, **kwd):
self.cash_movement = self.cash_movement_module.newContent( self.cash_movement = self.cash_movement_module.newContent(
id='cash_movement_1', id='cash_movement_1',
portal_type='Cash Movement New Not Emitted', portal_type='Cash Movement New Not Emitted',
source=self.reception_site.getRelativeUrl(), source=self.reception_site.getRelativeUrl(),
destination_section_value=self.spain, destination_section_value=self.spain,
description='test', description='test',
...@@ -329,23 +329,32 @@ class TestERP5BankingCashMovementNewNotEmitted(TestERP5BankingMonetaryReceptionM ...@@ -329,23 +329,32 @@ class TestERP5BankingCashMovementNewNotEmitted(TestERP5BankingMonetaryReceptionM
return return
sequence_list = SequenceList() sequence_list = SequenceList()
# define the sequence # define the sequence
sequence_list.addSequenceString("""
sequence_string = 'stepTic stepCheckObjects ' \ stepTic
'stepCreateMonetaryReception stepTic ' \ stepCheckObjects
'stepCheckInitialInventory stepCheckInitialContainerInventory ' \ stepCreateMonetaryReception
'stepCreateCashMovement stepTic ' \ stepTic
'stepCreateCashContainer stepTic ' \ stepCheckInitialInventory
'stepCheckCashDeliveryLine ' \ stepCheckInitialContainerInventory
'stepCheckCashContainer1 stepCheckCashContainer2 ' \ stepCreateCashMovement
'stepConfirmDocument stepTic ' \ stepTic
'stepStartDocument stepTic ' \ stepCreateCashContainer
'stepStopDocument stepTic ' \ stepTic
'stepDeliverDocument stepTic ' \ stepCheckCashDeliveryLine
'stepCheckFinalInventory stepCheckFinalContainerInventory' stepCheckCashContainer1
stepCheckCashContainer2
stepConfirmDocument
sequence_list.addSequenceString(sequence_string) stepTic
stepStartDocument
stepTic
stepStopDocument
stepTic
stepDeliverDocument
stepTic
stepCheckFinalInventory
stepCheckFinalContainerInventory
""")
# play the sequence # play the sequence
sequence_list.play(self) sequence_list.play(self)
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