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
Sebastien Robin
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
Hide 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,6 +755,19 @@ if validator_to_use == 'tidy':
elif
validator_to_use
==
'nu'
:
validator
=
NuValidator
(
show_warnings
)
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'
,
# this view redirects to an external URL
'test_erp5_web_Static_Web_Site_WebSite_view'
,
)
def
test_suite
():
# add the tests
if
validator
is
not
None
:
...
...
@@ -762,17 +775,7 @@ def test_suite():
# 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
# 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'
,
# this view redirects to an external URL
'test_erp5_web_Static_Web_Site_WebSite_view'
,
))
expected_failure_list
=
expected_failure_list
)
suite
=
unittest
.
TestSuite
()
suite
.
addTest
(
unittest
.
makeSuite
(
TestXHTML
))
return
suite
product/ERP5Type/tests/CodingStyleTest.py
View file @
abbe0362
...
...
@@ -114,15 +114,7 @@ def test_suite():
testclass
,
testXHTML
.
validator
,
tested_business_template_list
,
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'
,
),
expected_failure_list
=
testXHTML
.
expected_failure_list
,
)
# 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