Commit 1c05093c authored by Jérome Perrin's avatar Jérome Perrin

tests/CodingStyleTest: no need to install erp5_administration

now BusinessTemplate_getPythonSourceCodeMessageList is in erp5_core
parent f08dd4ce
Pipeline #8663 failed with stage
in 0 seconds
...@@ -43,13 +43,11 @@ class CodingStyleTest(CodingStyleTestCase, testXHTML.TestXHTMLMixin): ...@@ -43,13 +43,11 @@ class CodingStyleTest(CodingStyleTestCase, testXHTML.TestXHTMLMixin):
""" """
def getBusinessTemplateList(self): def getBusinessTemplateList(self):
# install erp5_administration to check with tools from erp5_administration # install erp5_upgrader for CodingStyleTestCase.test_run_upgrader
# and erp5_upgrader for CodingStyleTestCase.test_run_upgrader
# XXX also install erp5_full_text_myisam_catalog to workaround missing test # XXX also install erp5_full_text_myisam_catalog to workaround missing test
# dependencies and the fact that test dependencies are not checked # dependencies and the fact that test dependencies are not checked
# recursively. # recursively.
return ( return (
'erp5_administration',
'erp5_upgrader', 'erp5_upgrader',
'erp5_full_text_myisam_catalog', 'erp5_full_text_myisam_catalog',
self.tested_business_template) self.tested_business_template)
......
...@@ -92,11 +92,8 @@ class CodingStyleTestCase(ERP5TypeTestCase): ...@@ -92,11 +92,8 @@ class CodingStyleTestCase(ERP5TypeTestCase):
def test_PythonSourceCode(self): def test_PythonSourceCode(self):
"""test python script from the tested business templates. """test python script from the tested business templates.
reuses BusinessTemplate_getPythonSourceCodeMessageList from erp5_administration reuses BusinessTemplate_getPythonSourceCodeMessageList
""" """
if 'erp5_administration' not in self.getBusinessTemplateList():
self.skipTest('erp5_administration needs be installed to check python source code')
self.maxDiff = None self.maxDiff = None
for business_template in self.portal.portal_templates.contentValues(): for business_template in self.portal.portal_templates.contentValues():
if business_template.getTitle() in self.getTestedBusinessTemplateList(): if business_template.getTitle() in self.getTestedBusinessTemplateList():
......
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