Commit c0784e40 authored by Jérome Perrin's avatar Jérome Perrin

it does not make sense to pass form_id in the test


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20134 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 09d4de5d
...@@ -1280,7 +1280,7 @@ class TestPayroll(TestPayrollMixin): ...@@ -1280,7 +1280,7 @@ class TestPayroll(TestPayrollMixin):
portal_type='Pay Sheet Transaction', portal_type='Pay Sheet Transaction',
specialise_value=model) specialise_value=model)
paysheet.PaySheetTransaction_applyModel(form_id='view') paysheet.PaySheetTransaction_applyModel()
self.assertEquals(employee, paysheet.getSourceSectionValue()) self.assertEquals(employee, paysheet.getSourceSectionValue())
self.assertEquals(employer, paysheet.getDestinationSectionValue()) self.assertEquals(employer, paysheet.getDestinationSectionValue())
self.assertEquals(eur, paysheet.getResourceValue()) self.assertEquals(eur, paysheet.getResourceValue())
...@@ -1301,7 +1301,7 @@ class TestPayroll(TestPayrollMixin): ...@@ -1301,7 +1301,7 @@ class TestPayroll(TestPayrollMixin):
portal_type='Pay Sheet Transaction', portal_type='Pay Sheet Transaction',
specialise_value=other_model) specialise_value=other_model)
paysheet.PaySheetTransaction_applyModel(form_id='view') paysheet.PaySheetTransaction_applyModel()
self.assertEquals(employee, paysheet.getSourceSectionValue()) self.assertEquals(employee, paysheet.getSourceSectionValue())
self.assertEquals(employer, paysheet.getDestinationSectionValue()) self.assertEquals(employer, paysheet.getDestinationSectionValue())
self.assertEquals(eur, paysheet.getResourceValue()) self.assertEquals(eur, paysheet.getResourceValue())
...@@ -1312,7 +1312,7 @@ class TestPayroll(TestPayrollMixin): ...@@ -1312,7 +1312,7 @@ class TestPayroll(TestPayrollMixin):
# applying twice does not copy subdocument twice # applying twice does not copy subdocument twice
self.assertEquals(2, len(paysheet.contentValues())) self.assertEquals(2, len(paysheet.contentValues()))
paysheet.PaySheetTransaction_applyModel(form_id='view') paysheet.PaySheetTransaction_applyModel()
self.assertEquals(2, len(paysheet.contentValues())) self.assertEquals(2, len(paysheet.contentValues()))
......
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