Commit ba3449a5 authored by Jérome Perrin's avatar Jérome Perrin Committed by Eteri

ERP5WebCodingStyle: reuse CodingStyleTestCase correctly

CodingStyleTestCase tests by default the last business template returned
in getBusinessTemplateList, but  getBusinessTemplateList returned value
changed overtime and this test did not really test erp5_web

Also name include "ERP5 Web" in test class name, as it tests ERP5 Web.
parent 2344adde
......@@ -30,13 +30,16 @@
import unittest
from Products.ERP5Type.tests.CodingStyleTestCase import CodingStyleTestCase
class CodingStyle(CodingStyleTestCase):
class ERP5WebCodingStyle(CodingStyleTestCase):
"""
Check consistency of erp5_web business template code
"""
def getTitle(self):
return "erp5_web CodingStyle"
def getTestedBusinessTemplateList(self):
return ('erp5_web', )
def getBusinessTemplateList(self):
"""
Return the list of required business templates.
......@@ -51,5 +54,5 @@ class CodingStyle(CodingStyleTestCase):
def test_suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(CodingStyle))
suite.addTest(unittest.makeSuite(ERP5WebCodingStyle))
return suite
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