[Erp5-report] r32040 kazuhiko - /erp5/trunk/products/ERP5/tests/testInvoice.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Jan 27 20:55:22 CET 2010


Author: kazuhiko
Date: Wed Jan 27 20:55:21 2010
New Revision: 32040

URL: http://svn.erp5.org?rev=32040&view=rev
Log:
do not count Payment Transactions.

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

Modified: erp5/trunk/products/ERP5/tests/testInvoice.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testInvoice.py?rev=32040&r1=32039&r2=32040&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testInvoice.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testInvoice.py [utf8] Wed Jan 27 20:55:21 2010
@@ -2110,13 +2110,14 @@
     """Rebuilds with sale_invoice_builder and checks nothing more is
     created. """
     accounting_module = self.getAccountingModule()
-    sale_invoice_transaction_count = len(accounting_module.objectValues())
+    portal_type_list = ('Sale Invoice Transaction', 'Purchase Invoice Transaction')
+    sale_invoice_transaction_count = len(accounting_module.objectValues(
+      portal_type=portal_type_list))
     for builder in self.getPortal().portal_deliveries.objectValues():
       builder.build()
     self.assertEquals(sale_invoice_transaction_count,
                       len(accounting_module.objectValues(
-      portal_type=('Sale Invoice Transaction',
-                   'Purchase Invoice Transaction'))))
+      portal_type=portal_type_list)))
 
   def stepModifyInvoicesDate(self, sequence=None,
                                            sequence_list=None, **kw):




More information about the Erp5-report mailing list