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

CodingStyleTest: run testXHTML for each business template

This will allow to find problems when only business templates and their
dependencies are installed. When we run testXHTML with all business
template installed we don't see problems that may happen only when some
business templates are not installed.
parent 4f288d95
Pipeline #6772 failed with stage
......@@ -31,9 +31,11 @@ import os
import unittest
from glob import glob
from Products.ERP5.tests import testXHTML
from Products.ERP5Type.tests.CodingStyleTestCase import CodingStyleTestCase
class CodingStyleTest(CodingStyleTestCase):
class CodingStyleTest(CodingStyleTestCase, testXHTML.TestXHTML):
"""Run a coding style test for business template defined by
TESTED_BUSINESS_TEMPLATE environment variable, that is set by
ERP5BusinessTemplateCodingStyleTestSuite in test/__init__.py
......@@ -90,6 +92,11 @@ def test_suite():
(CodingStyleTest, ),
{'tested_business_template': tested_business_template})
testXHTML.addTestMethodDynamically(
testclass,
testXHTML.validator,
(tested_business_template,),
)
suite.addTest(unittest.makeSuite(testclass))
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