Commit 0df6386e authored by Romain Courteaud's avatar Romain Courteaud

ERP5/tests/testXHTML: do not report unused forms

parent 60f4f3df
...@@ -112,6 +112,12 @@ class TestXHTMLMixin(ERP5TypeTestCase): ...@@ -112,6 +112,12 @@ class TestXHTMLMixin(ERP5TypeTestCase):
except BrokenProxyField: except BrokenProxyField:
template_field = None template_field = None
if template_field is None: if template_field is None:
# check if the field parent form can be used by this skin_name
field_form_id = field_path.split('/')[0]
if not skins_tool.isFirstInSkin('%s/%s' % (skin_folder_id, field_form_id), skin=skin_name):
# The problematic form will not be used by this skin selection
# as another object with the same name exists
continue
# Base_viewRelatedObjectList (used for proxy listbox ids on # Base_viewRelatedObjectList (used for proxy listbox ids on
# relation fields) is an exception, the proxy field has no target # relation fields) is an exception, the proxy field has no target
# by default. # by default.
......
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