Commit ed970cf9 authored by Aurel's avatar Aurel

when no price returned, line must not be created, fix the test

parent deae8c98
...@@ -640,7 +640,7 @@ class TestPayrollMixin(TestTradeModelLineMixin, ERP5ReportTestCase): ...@@ -640,7 +640,7 @@ class TestPayrollMixin(TestTradeModelLineMixin, ERP5ReportTestCase):
paysheet_line_list = paysheet.contentValues(portal_type='Pay Sheet Line') paysheet_line_list = paysheet.contentValues(portal_type='Pay Sheet Line')
self.assertEqual(len(paysheet_line_list), 0) self.assertEqual(len(paysheet_line_list), 0)
self.assertEqual(len(paysheet.getMovementList(portal_type=\ self.assertEqual(len(paysheet.getMovementList(portal_type=\
'Pay Sheet Cell')), 0) # 2 because labour line contain no movement 'Pay Sheet Cell')), 0) # 0 because labour line contain no movement
def stepCheckPaysheetLineAreCreatedUsingBonus(self, sequence=None, **kw): def stepCheckPaysheetLineAreCreatedUsingBonus(self, sequence=None, **kw):
paysheet = sequence.get('paysheet') paysheet = sequence.get('paysheet')
...@@ -2206,8 +2206,7 @@ class TestPayroll(TestPayrollMixin): ...@@ -2206,8 +2206,7 @@ class TestPayroll(TestPayrollMixin):
def test_modelLineWithNonePrice(self): def test_modelLineWithNonePrice(self):
''' '''
test the creation of lines when the price is not set, but only the Test that no line is created when quantity is set but not price
quantity. This means that no ratio is applied on this line.
''' '''
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = """ sequence_string = """
...@@ -2226,10 +2225,7 @@ class TestPayroll(TestPayrollMixin): ...@@ -2226,10 +2225,7 @@ class TestPayroll(TestPayrollMixin):
CheckUpdateAggregatedAmountListReturn CheckUpdateAggregatedAmountListReturn
PaysheetApplyTransformation PaysheetApplyTransformation
Tic Tic
CheckPaysheetLineAreCreated CheckThereIsOnlyOnePaysheetLine
CheckPaysheetLineAmountsWithQuantityOnly
CheckUpdateAggregatedAmountListReturnNothing
CheckPaysheetLineAmountsWithQuantityOnly
""" """
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