testConversionInSimulation wasn't creating all categories it used

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45186 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 653f3ffa
...@@ -102,6 +102,7 @@ class TestConversionInSimulation(AccountingTestCase): ...@@ -102,6 +102,7 @@ class TestConversionInSimulation(AccountingTestCase):
_(category_tool.trade_phase, ['default']) _(category_tool.trade_phase, ['default'])
_(category_tool.trade_phase.default, _(category_tool.trade_phase.default,
['accounting', 'delivery', 'invoicing', 'discount', 'tax', 'payment']) ['accounting', 'delivery', 'invoicing', 'discount', 'tax', 'payment'])
_(category_tool.product_line, ['apparel'])
def _solveDivergence(self, obj, property, decision, group='line'): def _solveDivergence(self, obj, property, decision, group='line'):
""" """
...@@ -139,6 +140,10 @@ class TestConversionInSimulation(AccountingTestCase): ...@@ -139,6 +140,10 @@ class TestConversionInSimulation(AccountingTestCase):
currency.manage_delObjects([x.getId() for x in currency.manage_delObjects([x.getId() for x in
currency.objectValues( currency.objectValues(
portal_type='Currency Exchange Line')]) portal_type='Currency Exchange Line')])
if getattr(self, 'business_process', None) is not None:
self.business_process.getParentValue()._delObject(
self.business_process.getId()
)
transaction.commit() transaction.commit()
self.tic() self.tic()
super(TestConversionInSimulation, self).beforeTearDown() super(TestConversionInSimulation, self).beforeTearDown()
...@@ -158,6 +163,8 @@ class TestConversionInSimulation(AccountingTestCase): ...@@ -158,6 +163,8 @@ class TestConversionInSimulation(AccountingTestCase):
need to be installed to run the test on. need to be installed to run the test on.
""" """
return ('erp5_base', return ('erp5_base',
# XXX erp5_core is still not clean. Remove when not needed
'erp5_core_proxy_field_legacy',
'erp5_pdm', 'erp5_pdm',
'erp5_simulation', 'erp5_simulation',
'erp5_trade', 'erp5_trade',
......
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