Commit 8653844d authored by Romain Courteaud's avatar Romain Courteaud

Test if some business template follow the Field Library creation convention.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31635 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 193b2b59
This diff is collapsed.
...@@ -173,6 +173,20 @@ class TestXHTML(ERP5TypeTestCase): ...@@ -173,6 +173,20 @@ class TestXHTML(ERP5TypeTestCase):
message += '\t%s\n' % str(error) message += '\t%s\n' % str(error)
self.fail(message) self.fail(message)
def test_configurationOfFieldLibrary(self):
error_list = []
for business_template in self.portal.portal_templates.searchFolder():
# XXX Impossible to filter by installation state, as it is not catalogued
business_template = business_template.getObject()
for modifiable_field in business_template.BusinessTemplate_getModifiableFieldList():
error_list.append((modifiable_field.object_id,
modifiable_field.choice_item_list[0][0]))
if error_list:
message = '\nField to modify\n'
for error in error_list:
message += '\t%s\n' % str(error)
self.fail(message)
def test_portalTypesDomainTranslation(self): def test_portalTypesDomainTranslation(self):
# according to bt5-Module.Creation.Guidelines document, module # according to bt5-Module.Creation.Guidelines document, module
# portal_types should be translated using erp5_ui, and normal ones, using # portal_types should be translated using erp5_ui, and normal ones, using
......
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