Commit abbe0362 authored by Jérome Perrin's avatar Jérome Perrin

CodingStyleTest: reuse expected_failure_list from testXHTML

parent 94975565
...@@ -755,6 +755,19 @@ if validator_to_use == 'tidy': ...@@ -755,6 +755,19 @@ if validator_to_use == 'tidy':
elif validator_to_use == 'nu': elif validator_to_use == 'nu':
validator = NuValidator(show_warnings) 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(): def test_suite():
# add the tests # add the tests
if validator is not None: if validator is not None:
...@@ -762,17 +775,7 @@ def test_suite(): ...@@ -762,17 +775,7 @@ def test_suite():
# on getBusinessTemplateList call # on getBusinessTemplateList call
addTestMethodDynamically(TestXHTML, validator, addTestMethodDynamically(TestXHTML, validator,
('erp5_core',) + TestXHTML.getBusinessTemplateList(), ('erp5_core',) + TestXHTML.getBusinessTemplateList(),
expected_failure_list=( expected_failure_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',
# this view redirects to an external URL
'test_erp5_web_Static_Web_Site_WebSite_view',
))
suite = unittest.TestSuite() suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestXHTML)) suite.addTest(unittest.makeSuite(TestXHTML))
return suite return suite
...@@ -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
......
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