[Erp5-report] r13875 - /erp5/trunk/products/ERP5/tests/testAccountingReports.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Apr 3 10:20:59 CEST 2007


Author: jerome
Date: Tue Apr  3 10:20:56 2007
New Revision: 13875

URL: http://svn.erp5.org?rev=13875&view=rev
Log:
Test that the box showing summary in Account_viewAccountingTransactionList is
not rendered in General Ledger


Modified:
    erp5/trunk/products/ERP5/tests/testAccountingReports.py

Modified: erp5/trunk/products/ERP5/tests/testAccountingReports.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testAccountingReports.py?rev=13875&r1=13874&r2=13875&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testAccountingReports.py (original)
+++ erp5/trunk/products/ERP5/tests/testAccountingReports.py Tue Apr  3 10:20:56 2007
@@ -1106,6 +1106,19 @@
     line_list = self.getListBoxLineList(report_section_list[0])
     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
     self.assertEquals(['Movement_getSpecificReference',
         'Movement_getExplanationTitle', 'date',




More information about the Erp5-report mailing list