Commit 70a59823 authored by Jérome Perrin's avatar Jérome Perrin

Test that the box showing summary in Account_viewAccountingTransactionList is

not rendered in General Ledger



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13875 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a7965ea3
...@@ -1106,6 +1106,19 @@ class TestAccountingReports(AccountingTestCase): ...@@ -1106,6 +1106,19 @@ class TestAccountingReports(AccountingTestCase):
line_list = self.getListBoxLineList(report_section_list[0]) line_list = self.getListBoxLineList(report_section_list[0])
data_line_list = [l for l in line_list if l.isDataLine()] data_line_list = [l for l in line_list if l.isDataLine()]
# The box showing parameters summary in
# Account_viewAccountingTransactionList is not rendered here.
report_section = report_section_list[0]
report_section.pushReport(self.portal)
form = getattr(self.portal, report_section.form_id)
# we test that this form only shows a listbox
for group in form.get_groups():
if group != 'hidden':
for field in form.get_fields_in_group(group):
if field.getId() != 'listbox':
self.fail('Field %s should not be visible', field.getId())
report_section.popReport(self.portal)
# report layout # report layout
self.assertEquals(['Movement_getSpecificReference', self.assertEquals(['Movement_getSpecificReference',
'Movement_getExplanationTitle', 'date', 'Movement_getExplanationTitle', 'date',
......
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