Commit b44fe007 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Create banknotes and coins after site categories.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30698 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 87336ee7
......@@ -488,8 +488,6 @@ class TestERP5BankingMixin(ERP5TypeTestCase):
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 @@ class TestERP5BankingMixin(ERP5TypeTestCase):
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):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment