Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Arnaud Fontaine
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):
"""
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
),
())
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
),
())
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