[Erp5-report] r33679 yusuke - /erp5/trunk/products/ERP5/tests/

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Mar 12 03:11:15 CET 2010


Author: yusuke
Date: Fri Mar 12 03:11:14 2010
New Revision: 33679

URL: http://svn.erp5.org?rev=33679&view=rev
Log:
change the afterSetUp method position to reset ID tool

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

Modified: erp5/trunk/products/ERP5/tests/testERP5Simulation.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testERP5Simulation.py?rev=33679&r1=33678&r2=33679&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testERP5Simulation.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testERP5Simulation.py [utf8] Fri Mar 12 03:11:14 2010
@@ -506,7 +506,10 @@
   pass
 
 class TestERP5SimulationInvoice(TestERP5SimulationMixin, TestSaleInvoice):
-  pass
+
+  def afterSetUp(self):
+    super(TestERP5SimulationInvoice, self).afterSetUp()
+    self.portal.portal_ids.setLastGeneratedId(0, id_group='Accounting_Transaction_Module-Sale_Invoice_Transaction')
 
 def test_suite():
   suite = unittest.TestSuite()

Modified: erp5/trunk/products/ERP5/tests/testInvoice.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testInvoice.py?rev=33679&r1=33678&r2=33679&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testInvoice.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testInvoice.py [utf8] Fri Mar 12 03:11:14 2010
@@ -2560,10 +2560,6 @@
       stepCheckNewPackingListIsPacked
     """
 
-  def afterSetUp(self):
-    super(TestSaleInvoiceMixin, self).afterSetUp()
-    self.portal.portal_ids.setLastGeneratedId(0, id_group='Accounting_Transaction_Module-Sale_Invoice_Transaction')
-
 class TestSaleInvoice(TestSaleInvoiceMixin, TestInvoice, ERP5TypeTestCase):
   """Tests for sale invoice.
   """
@@ -2571,6 +2567,10 @@
 
   # fix inheritance
   login = TestInvoiceMixin.login
+
+  def afterSetUp(self):
+    super(TestSaleInvoice, self).afterSetUp()
+    self.portal.portal_ids.setLastGeneratedId(0, id_group='Accounting_Transaction_Module-Sale_Invoice_Transaction')
 
   @UnrestrictedMethod
   def createCategories(self):




More information about the Erp5-report mailing list