[Erp5-report] r35469 romain - /erp5/trunk/products/ERP5Form/tests/testProxyField.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu May 20 10:33:37 CEST 2010
Author: romain
Date: Thu May 20 10:33:36 2010
New Revision: 35469
URL: http://svn.erp5.org?rev=35469&view=rev
Log:
Restore r35467: a field was missing.
The test is supposed to fail, as the proxy field cache does not check the skin
selection. A transaction commit was missing to reproduce the issue.
Modified:
erp5/trunk/products/ERP5Form/tests/testProxyField.py
Modified: erp5/trunk/products/ERP5Form/tests/testProxyField.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Form/tests/testProxyField.py?rev=35469&r1=35468&r2=35469&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/tests/testProxyField.py [utf8] (original)
+++ erp5/trunk/products/ERP5Form/tests/testProxyField.py [utf8] Thu May 20 10:33:36 2010
@@ -35,6 +35,7 @@
import transaction
import unittest
from lxml import etree
+from Products.ERP5Type.tests.backportUnittest import expectedFailure
class TestProxyField(ERP5TypeTestCase):
"""
@@ -144,6 +145,7 @@
self.assertEquals('Generic Title', field.get_value('title'))
+ @expectedFailure
def testSkinSelectionTemplateField(self):
"""
Check that proxy field values are generated from the current skin selection
@@ -155,6 +157,7 @@
'Base_viewGeekFieldLibrary',
'View')
form = skin_folder._getOb('Base_viewGeekFieldLibrary', None)
+ form.manage_addField('my_title', 'Customized Title', 'StringField')
portal_skins.manage_addProduct['OFSP'].manage_addFolder('erp5_geek')
skin_folder = portal_skins._getOb('erp5_geek')
@@ -192,6 +195,7 @@
field = getattr(form, 'my_title')
field.manage_edit_xmlrpc(dict(
form_id='Base_viewGeekFieldLibrary', field_id='my_title'))
+ transaction.commit()
self.assertEquals(None, field.get_value('title'))
self.changeSkin('GenericView')
More information about the Erp5-report
mailing list