[Erp5-report] r33618 yusuke - /erp5/trunk/products/ERP5Legacy/tests/

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Mar 11 09:16:49 CET 2010


Author: yusuke
Date: Thu Mar 11 09:16:46 2010
New Revision: 33618

URL: http://svn.erp5.org?rev=33618&view=rev
Log:
update expected references

Added:
    erp5/trunk/products/ERP5Legacy/tests/__init__.py
Modified:
    erp5/trunk/products/ERP5Legacy/tests/testLegacyInvoice.py

Added: erp5/trunk/products/ERP5Legacy/tests/__init__.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Legacy/tests/__init__.py?rev=33618&view=auto
==============================================================================
    (empty)

Modified: erp5/trunk/products/ERP5Legacy/tests/testLegacyInvoice.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Legacy/tests/testLegacyInvoice.py?rev=33618&r1=33617&r2=33618&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Legacy/tests/testLegacyInvoice.py [utf8] (original)
+++ erp5/trunk/products/ERP5Legacy/tests/testLegacyInvoice.py [utf8] Thu Mar 11 09:16:46 2010
@@ -2523,6 +2523,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):
     TestPackingListMixin.createCategories(self)
@@ -3296,7 +3300,7 @@
     self.portal.portal_workflow.doActionFor(invoice, 'confirm_action')
 
     # We could generate a better reference here.
-    self.assertEquals('1', invoice.getReference())
+    self.assertEquals('SIT 1', invoice.getReference())
 
   def test_16_ManuallyAddedMovements(self, quiet=quiet):
     """




More information about the Erp5-report mailing list