[Erp5-report] r45186 leonardo - /erp5/trunk/products/ERP5/tests/testConversionInSimulation.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Apr 7 18:15:12 CEST 2011
Author: leonardo
Date: Thu Apr 7 18:15:12 2011
New Revision: 45186
URL: http://svn.erp5.org?rev=45186&view=rev
Log:
testConversionInSimulation wasn't creating all categories it used
Modified:
erp5/trunk/products/ERP5/tests/testConversionInSimulation.py
Modified: erp5/trunk/products/ERP5/tests/testConversionInSimulation.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testConversionInSimulation.py?rev=45186&r1=45185&r2=45186&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testConversionInSimulation.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testConversionInSimulation.py [utf8] Thu Apr 7 18:15:12 2011
@@ -102,6 +102,7 @@ class TestConversionInSimulation(Account
_(category_tool.trade_phase, ['default'])
_(category_tool.trade_phase.default,
['accounting', 'delivery', 'invoicing', 'discount', 'tax', 'payment'])
+ _(category_tool.product_line, ['apparel'])
def _solveDivergence(self, obj, property, decision, group='line'):
"""
@@ -139,6 +140,10 @@ class TestConversionInSimulation(Account
currency.manage_delObjects([x.getId() for x in
currency.objectValues(
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()
self.tic()
super(TestConversionInSimulation, self).beforeTearDown()
@@ -158,6 +163,8 @@ class TestConversionInSimulation(Account
need to be installed to run the test on.
"""
return ('erp5_base',
+ # XXX erp5_core is still not clean. Remove when not needed
+ 'erp5_core_proxy_field_legacy',
'erp5_pdm',
'erp5_simulation',
'erp5_trade',
More information about the Erp5-report
mailing list