Commit 6b5729a2 authored by Aurel's avatar Aurel

add a parameter in order to no create the complete site category


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10205 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2ea66210
......@@ -426,7 +426,7 @@ class TestERP5BankingMixin:
price_currency_value=self.currency_2, variation_list=('not_defined',),
quantity_unit_value=self.unit)
def createFunctionGroupSiteCategory(self):
def createFunctionGroupSiteCategory(self, no_site=0):
"""
Create site group function category that can be used for security
"""
......@@ -469,6 +469,7 @@ class TestERP5BankingMixin:
self.paris = self.testsite.newContent(id='paris', portal_type='Category', codification='P1', vault_type='site')
self.madrid = self.testsite.newContent(id='madrid', portal_type='Category', codification='S1', vault_type='site')
if not no_site:
for c in self.testsite.getCategoryChildValueList():
# create bank structure for each agency
site = c.getId()
......
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