Commit 7cd040bf authored by Jérome Perrin's avatar Jérome Perrin

CodingStyleTestCase: chek skin folders recursively

they may contain folder containing skins
parent 9a78c7a8
......@@ -87,10 +87,14 @@ class CodingStyleTestCase(ERP5TypeTestCase):
portal_skins = self.portal.portal_skins
for skin_id in skin_id_set:
skin = portal_skins[skin_id]
for document in skin.objectValues():
for _, document in skin.ZopeFind(
skin,
obj_metatypes=(),
search_sub=True):
if getattr(aq_base(document), 'checkConsistency', None) is not None:
message_list.extend(document.checkConsistency())
# Return results
if len(message_list):
raise self.failureException('\n'.join(map(lambda x: repr(x), message_list)))
......
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