Commit 9285a796 authored by Jérome Perrin's avatar Jérome Perrin

CodingStyleTestCase: chek skin folders recursively

they may contain folder containing skins
parent 60f36c82
......@@ -85,7 +85,10 @@ 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())
......
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