[Erp5-report] r43031 nicolas.dumazet - /erp5/trunk/products/ERP5/tests/testTransformation.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Feb 4 11:50:50 CET 2011
Author: nicolas.dumazet
Date: Fri Feb 4 11:50:50 2011
New Revision: 43031
URL: http://svn.erp5.org?rev=43031&view=rev
Log:
_addPropertySheet changes portal types, one needs to force a commit to actually
regenerate accessors.
This fixes the last failure of this test.
Modified:
erp5/trunk/products/ERP5/tests/testTransformation.py
Modified: erp5/trunk/products/ERP5/tests/testTransformation.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testTransformation.py?rev=43031&r1=43030&r2=43031&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testTransformation.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testTransformation.py [utf8] Fri Feb 4 11:50:50 2011
@@ -143,6 +143,8 @@ class TestTransformation(TestTransformat
# like movements, order lines and so on.
self._addPropertySheet('Amount', ps_id)
self._addPropertySheet(self.transformed_resource_portal_type, ps_id)
+ # need to force accessor regeneration after portal type changes
+ transaction.commit()
transformation = self.createTransformation()
transformed_resource = self.createTransformedResource(transformation)
More information about the Erp5-report
mailing list