[Erp5-report] r34576 seb - /erp5/trunk/products/ERP5/tests/testAdvancedInvoicing.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Apr 15 11:38:58 CEST 2010


Author: seb
Date: Thu Apr 15 11:38:53 2010
New Revision: 34576

URL: http://svn.erp5.org?rev=34576&view=rev
Log:
it make no sense to clear all generator. Clear manually
only one id_group until import/export method of generated
or implemented (there is already api for this)

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

Modified: erp5/trunk/products/ERP5/tests/testAdvancedInvoicing.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testAdvancedInvoicing.py?rev=34576&r1=34575&r2=34576&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testAdvancedInvoicing.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testAdvancedInvoicing.py [utf8] Thu Apr 15 11:38:53 2010
@@ -393,7 +393,11 @@
 
   def afterSetUp(self):
     super(TestAdvancedSaleInvoice, self).afterSetUp()
-    self.portal.portal_ids.clearGenerator(all=True)
+    # This is quite ugly, we should use late import/export functions of generators
+    self.portal.cmf_activity_sql_connection.manage_test(
+     "delete from portal_ids where \
+       id_group='Accounting_Transaction_Module-Sale_Invoice_Transaction'")
+    transaction.commit()
 
   def stepCheckInvoicesAndTransactionsConsistency(self, sequence=None, sequence_list=None,
                                                   **kw):




More information about the Erp5-report mailing list