Commit 8e264892 authored by Jérome Perrin's avatar Jérome Perrin

testXHTML: also test python scripts in portal_workflow

parent aa8ca64a
......@@ -314,9 +314,9 @@ class TestXHTML(ERP5TypeTestCase):
"""
Check that Python Scripts syntax is correct.
"""
skins_tool = self.portal.portal_skins
for script_path, script in skins_tool.ZopeFind(
skins_tool, obj_metatypes=['Script (Python)'], search_sub=1):
for tool in (self.portal.portal_skins, self.portal.portal_workflow):
for script_path, script in tool.ZopeFind(
tool, obj_metatypes=['Script (Python)'], search_sub=1):
if script.errors!=():
# we need to add script id as well in test failure
self.assertEquals('%s : %s' %(script_path, script.errors), ())
......
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