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

- change a bit bt order (erp5_payroll is better at the end)

- add a TODO from old tests


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27455 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 67b5a84b
...@@ -110,7 +110,7 @@ class TestNewPayrollMixin(ERP5ReportTestCase, TestBPMMixin): ...@@ -110,7 +110,7 @@ class TestNewPayrollMixin(ERP5ReportTestCase, TestBPMMixin):
def getBusinessTemplateList(self): def getBusinessTemplateList(self):
""" """ """ """
return ('erp5_base', 'erp5_pdm', 'erp5_trade', 'erp5_accounting', return ('erp5_base', 'erp5_pdm', 'erp5_trade', 'erp5_accounting',
'erp5_invoicing', 'erp5_payroll', 'erp5_mrp', 'erp5_bpm') 'erp5_invoicing', 'erp5_mrp', 'erp5_bpm', 'erp5_payroll')
def createPayrollService(self): def createPayrollService(self):
module = self.portal.getDefaultModule(portal_type='Payroll Service') module = self.portal.getDefaultModule(portal_type='Payroll Service')
...@@ -984,6 +984,12 @@ class TestNewPayroll(TestNewPayrollMixin): ...@@ -984,6 +984,12 @@ class TestNewPayroll(TestNewPayrollMixin):
call the XMLMatrix.getCell and if the cell is not found, call call the XMLMatrix.getCell and if the cell is not found, call
getCell method in all it's inherited model until the cell is found or getCell method in all it's inherited model until the cell is found or
the cell have been searched on all inherited models. the cell have been searched on all inherited models.
TODO : Currently, the method use a Depth-First Search algorithm, it will
be better to use Breadth-First Search one.
more about this on :
- http://en.wikipedia.org/wiki/Breadth-first_search
- http://en.wikipedia.org/wiki/Depth-first_search
''' '''
sequence_list = SequenceList() sequence_list = SequenceList()
sequence_string = """ sequence_string = """
......
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