Commit 2fca2403 authored by Fabien Morin's avatar Fabien Morin

getEffectiveModel call was wrong and leed to random results of this step


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27793 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 07cab41b
......@@ -1687,7 +1687,10 @@ class TestPayrollMixin(ERP5ReportTestCase, TestBPMMixin):
# the effective model should be model_2 because of the effective date and
# version number
specialise_value = paysheet.getSpecialiseValue()
self.assertEquals(specialise_value.getEffectiveModel(paysheet), model_2)
effective_model = specialise_value.getEffectiveModel(\
start_date=paysheet.getStartDate(),
stop_date=paysheet.getStopDate())
self.assertEquals(effective_model, model_2)
# check the effective model tree list
effective_value_list = specialise_value.findEffectiveSpecialiseValueList(\
......
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