[Erp5-report] r30698 - /erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Nov 17 17:22:56 CET 2009


Author: gregory
Date: Tue Nov 17 17:22:55 2009
New Revision: 30698

URL: http://svn.erp5.org?rev=30698&view=rev
Log:
Create banknotes and coins after site categories.

Modified:
    erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py

Modified: erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py?rev=30698&r1=30697&r2=30698&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py [utf8] (original)
+++ erp5/trunk/products/ERP5Banking/tests/TestERP5BankingMixin.py [utf8] Tue Nov 17 17:22:55 2009
@@ -488,8 +488,6 @@
     if site_list is None:
       site_list = ["paris", 'madrid', 'siege']
 
-    self._createBanknotesAndCoins()
-
     # add category unit in quantity_unit which is the unit that will be used for banknotes and coins
     self.variation_base_category = getattr(self.category_tool, 'quantity_unit')
     self.unit = self.variation_base_category.newContent(id='unit', title='Unit')
@@ -552,6 +550,9 @@
     self.madrid = self.testsite.newContent(id='madrid', portal_type='Category', codification='S10',  vault_type='site')
     self.siege = self.site_base_category.newContent(id='siege', portal_type='Category', codification='HQ1',  vault_type='site')
     created_site_list = [self.paris, self.madrid, self.siege]
+
+    self._createBanknotesAndCoins()
+
     if len(site_list) != 0:
       for site in site_list:
         if isinstance(site, tuple):




More information about the Erp5-report mailing list