Commit c98150ff authored by Ivan Tyagov's avatar Ivan Tyagov

Test Python script syntax.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39881 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bbb2d9f1
......@@ -247,6 +247,19 @@ class TestXHTML(ERP5TypeTestCase):
duplicating_selection_name_dict = self.portal.portal_skins.SkinsTool_getDuplicateSelectionNameDict()
self.assertEquals(duplicating_selection_name_dict, {})
def test_PythonScriptSyntax(self):
"""
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):
if script.errors!=():
# we need to add script id as well in test failure
self.assertEquals('%s : %s' %(script_path, script.errors), ())
def test_callableListMethodInListbox(self):
# check all list_method in listboxes
skins_tool = self.portal.portal_skins
......
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