Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
138
Merge Requests
138
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
8e264892
Commit
8e264892
authored
May 20, 2013
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testXHTML: also test python scripts in portal_workflow
parent
aa8ca64a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
product/ERP5/tests/testXHTML.py
product/ERP5/tests/testXHTML.py
+6
-6
No files found.
product/ERP5/tests/testXHTML.py
View file @
8e264892
...
@@ -314,12 +314,12 @@ class TestXHTML(ERP5TypeTestCase):
...
@@ -314,12 +314,12 @@ class TestXHTML(ERP5TypeTestCase):
"""
"""
Check that Python Scripts syntax is correct.
Check that Python Scripts syntax is correct.
"""
"""
skins_tool
=
self
.
portal
.
portal_skins
for
tool
in
(
self
.
portal
.
portal_skins
,
self
.
portal
.
portal_workflow
):
for
script_path
,
script
in
skins_
tool
.
ZopeFind
(
for
script_path
,
script
in
tool
.
ZopeFind
(
skins_
tool
,
obj_metatypes
=
[
'Script (Python)'
],
search_sub
=
1
):
tool
,
obj_metatypes
=
[
'Script (Python)'
],
search_sub
=
1
):
if
script
.
errors
!=
():
if
script
.
errors
!=
():
# we need to add script id as well in test failure
# we need to add script id as well in test failure
self
.
assertEquals
(
'%s : %s'
%
(
script_path
,
script
.
errors
),
())
self
.
assertEquals
(
'%s : %s'
%
(
script_path
,
script
.
errors
),
())
def
test_SkinItemId
(
self
):
def
test_SkinItemId
(
self
):
"""
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment