Commit c02588e5 authored by Aurel's avatar Aurel

add new categories for test


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7214 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 641cf297
......@@ -272,6 +272,7 @@ class TestERP5BankingMixin:
self.cash_status_valid = self.cash_status_base_category.newContent(id='valid', portal_type='Category')
self.cash_status_to_sort = self.cash_status_base_category.newContent(id='to_sort', portal_type='Category')
self.cash_status_cancelled = self.cash_status_base_category.newContent(id='cancelled', portal_type='Category')
self.cash_status_not_defined = self.cash_status_base_category.newContent(id='not_defined', portal_type='Category')
self.emission_letter_base_category = getattr(self.category_tool, 'emission_letter')
# add the category k in emission letter that will be used fo banknotes and coins
......@@ -361,6 +362,8 @@ class TestERP5BankingMixin:
caveau = c.newContent(id='caveau', portal_type='Category', codification='', vault_type='site/caveau')
for s in ['auxiliaire', 'reserve', 'externes']:
s = caveau.newContent(id='%s' %(s,), portal_type='Category', codification='', vault_type='site/caveau/%s' %(s,))
if s.getId() == 'auxiliaire':
ss = s.newContent(id='encaisse_des_billets_a_ventiler_et_a_detruire', portal_type='Category', codification='', vault_type='site/caveau/%s' %(s,))
for ss in ['encaisse_des_billets_et_monnaies', 'encaisse_des_externes', 'encaisse_des_billets_recus_pour_ventilation']:
ss = s.newContent(id='%s' %(ss,), portal_type='Category', codification='', vault_type='site/caveau/%s' %(s,))
if 'ventilation' in ss.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