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

getReportSectionList now needs a context


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21531 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6846d20c
......@@ -794,10 +794,10 @@ class ERP5TypeTestCase(PortalTestCase):
class ERP5ReportTestCase(ERP5TypeTestCase):
"""Base class for testing ERP5 Reports
"""
def getReportSectionList(self, report_name):
"""Get the list of report sections in a report."""
report = getattr(self.portal, report_name)
report_method = getattr(self.portal, report.report_method)
def getReportSectionList(self, context, report_name):
"""Get the list of report sections in a report called on context."""
report = getattr(context, report_name)
report_method = getattr(context, report.report_method)
return report_method()
def getListBoxLineList(self, report_section):
......
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