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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gabriel Monnerat
erp5
Commits
abbe0362
Commit
abbe0362
authored
Mar 06, 2022
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CodingStyleTest: reuse expected_failure_list from testXHTML
parent
94975565
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
20 deletions
+15
-20
product/ERP5/tests/testXHTML.py
product/ERP5/tests/testXHTML.py
+14
-11
product/ERP5Type/tests/CodingStyleTest.py
product/ERP5Type/tests/CodingStyleTest.py
+1
-9
No files found.
product/ERP5/tests/testXHTML.py
View file @
abbe0362
...
@@ -755,14 +755,8 @@ if validator_to_use == 'tidy':
...
@@ -755,14 +755,8 @@ if validator_to_use == 'tidy':
elif
validator_to_use
==
'nu'
:
elif
validator_to_use
==
'nu'
:
validator
=
NuValidator
(
show_warnings
)
validator
=
NuValidator
(
show_warnings
)
def
test_suite
():
# add the tests
expected_failure_list
=
(
if
validator
is
not
None
:
# add erp5_core to the list here to not return it
# on getBusinessTemplateList call
addTestMethodDynamically
(
TestXHTML
,
validator
,
(
'erp5_core'
,)
+
TestXHTML
.
getBusinessTemplateList
(),
expected_failure_list
=
(
# this view needs VCS preference set (this test suite does not support
# this view needs VCS preference set (this test suite does not support
# setting preferences, but this might be a way to fix this).
# setting preferences, but this might be a way to fix this).
'test_erp5_forge_Business_Template_BusinessTemplate_viewVcsStatus'
,
'test_erp5_forge_Business_Template_BusinessTemplate_viewVcsStatus'
,
...
@@ -772,7 +766,16 @@ def test_suite():
...
@@ -772,7 +766,16 @@ def test_suite():
'test_erp5_simulation_Solver_Decision_SolverDecision_viewConfiguration'
,
'test_erp5_simulation_Solver_Decision_SolverDecision_viewConfiguration'
,
# this view redirects to an external URL
# this view redirects to an external URL
'test_erp5_web_Static_Web_Site_WebSite_view'
,
'test_erp5_web_Static_Web_Site_WebSite_view'
,
))
)
def
test_suite
():
# add the tests
if
validator
is
not
None
:
# add erp5_core to the list here to not return it
# on getBusinessTemplateList call
addTestMethodDynamically
(
TestXHTML
,
validator
,
(
'erp5_core'
,)
+
TestXHTML
.
getBusinessTemplateList
(),
expected_failure_list
=
expected_failure_list
)
suite
=
unittest
.
TestSuite
()
suite
=
unittest
.
TestSuite
()
suite
.
addTest
(
unittest
.
makeSuite
(
TestXHTML
))
suite
.
addTest
(
unittest
.
makeSuite
(
TestXHTML
))
return
suite
return
suite
product/ERP5Type/tests/CodingStyleTest.py
View file @
abbe0362
...
@@ -114,15 +114,7 @@ def test_suite():
...
@@ -114,15 +114,7 @@ def test_suite():
testclass
,
testclass
,
testXHTML
.
validator
,
testXHTML
.
validator
,
tested_business_template_list
,
tested_business_template_list
,
expected_failure_list
=
(
expected_failure_list
=
testXHTML
.
expected_failure_list
,
# this view needs VCS preference set (this test suite does not support
# setting preferences, but this might be a way to fix this).
'test_erp5_forge_Business_Template_BusinessTemplate_viewVcsStatus'
,
# this view only works when solver decision has a relation to a solver.
# One way to fix this would be to allow a custom "init script" to be called
# on a portal type.
'test_erp5_simulation_Solver_Decision_SolverDecision_viewConfiguration'
,
),
)
)
# required to create content in portal_components
# required to create content in portal_components
...
...
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