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

CodingStyleTest: reuse expected_failure_list from testXHTML

parent 94975565
Pipeline #20010 failed with stage
in 0 seconds
...@@ -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
...@@ -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