Commit bcc6e9f6 authored by Fabien Morin's avatar Fabien Morin

Merge two tests in one :

now we use Business Process to define wich builder we want to use. So without using Business Process, it's not possible to get a builder (and create new lines).
The only differences between the two tests was that one use Business Process and not the basic one, but now it's always needed to use Business Process, so two tests can be merged.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27080 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c38c6e92
...@@ -263,6 +263,7 @@ class TestNewPayrollMixin(ERP5ReportTestCase, TestBPMMixin): ...@@ -263,6 +263,7 @@ class TestNewPayrollMixin(ERP5ReportTestCase, TestBPMMixin):
business_path = sequence.get('business_path') business_path = sequence.get('business_path')
business_path.setTradePhaseList(['trade_phase/payroll/france/urssaf']) business_path.setTradePhaseList(['trade_phase/payroll/france/urssaf'])
business_path.setSourceDecisionValue(sequence.get('urssaf_roubaix')) business_path.setSourceDecisionValue(sequence.get('urssaf_roubaix'))
business_path.setDeliveryBuilderList(('portal_deliveries/pay_sheet_builder',))
sequence.edit(business_path=business_path) sequence.edit(business_path=business_path)
def stepSpecialiseBusinessProcessOnModel(self, sequence=None, **kw): def stepSpecialiseBusinessProcessOnModel(self, sequence=None, **kw):
...@@ -307,19 +308,6 @@ class TestNewPayroll(TestNewPayrollMixin): ...@@ -307,19 +308,6 @@ class TestNewPayroll(TestNewPayrollMixin):
''' '''
test applyTransformation method. It should create new movements test applyTransformation method. It should create new movements
''' '''
sequence_list = SequenceList()
sequence_string = self.COMMON_BASIC_DOCUMENT_CREATION_SEQUENCE_STRING + """
CheckUpdateAggregatedMovementReturn
PaysheetApplyTransformation
Tic
CheckPaysheetLineAreCreated
CheckPaysheetLineAmounts
CheckUpdateAggregatedAmountListReturnNothing
"""
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self)
def test_02_setSourceOnMovementUsingBusinessProcess(self):
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = self.COMMON_BASIC_DOCUMENT_CREATION_SEQUENCE_STRING + """ sequence_string = self.COMMON_BASIC_DOCUMENT_CREATION_SEQUENCE_STRING + """
CreateBusinessProcess CreateBusinessProcess
...@@ -332,6 +320,9 @@ class TestNewPayroll(TestNewPayrollMixin): ...@@ -332,6 +320,9 @@ class TestNewPayroll(TestNewPayrollMixin):
PaysheetApplyTransformation PaysheetApplyTransformation
Tic Tic
CheckSourceSectionOnMovements CheckSourceSectionOnMovements
CheckPaysheetLineAreCreated
CheckPaysheetLineAmounts
CheckUpdateAggregatedAmountListReturnNothing
""" """
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
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