Commit 052fe20c authored by Aurel's avatar Aurel

define some region for unit test


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24563 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 704daf00
...@@ -434,6 +434,12 @@ class TestERP5BankingMixin: ...@@ -434,6 +434,12 @@ class TestERP5BankingMixin:
self.variation_not_defined = self.variation_base_category.newContent(id='not_defined', self.variation_not_defined = self.variation_base_category.newContent(id='not_defined',
portal_type='Category') portal_type='Category')
# Now create required category for region and coin
self.region_base_category = getattr(self.category_tool, 'region')
# add the category valid in cash_status which define status of banknotes and coin
self.region_france = self.region_base_category.newContent(id='france', title="France", portal_type='Category')
self.region_spain = self.region_base_category.newContent(id='spain', title="Spain", portal_type='Category')
# Create Resources Document (Banknotes & Coins) # Create Resources Document (Banknotes & Coins)
# get the currency cash module # get the currency cash module
self.currency_cash_module = self.getCurrencyCashModule() self.currency_cash_module = self.getCurrencyCashModule()
......
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