From ed31a0682d6978217d38052559f2f83570c60b10 Mon Sep 17 00:00:00 2001 From: Julien Muchembled <jm@nexedi.com> Date: Fri, 15 Jan 2010 18:56:53 +0000 Subject: [PATCH] Revert part of [31788] because it prevents projects to reuse testXHTML for their own BT See also [27652] git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31789 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/tests/testXHTML.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/product/ERP5/tests/testXHTML.py b/product/ERP5/tests/testXHTML.py index 3bd26125f8..be0642e991 100644 --- a/product/ERP5/tests/testXHTML.py +++ b/product/ERP5/tests/testXHTML.py @@ -562,14 +562,13 @@ elif validator_to_use == 'tidy': else: validator = TidyValidator(validator_path, show_warnings) -if validator is not None: - # add erp5_core to the list here to not return it - # on getBusinessTemplateList call - addTestMethodDynamically(validator, - ('erp5_core',) + TestXHTML.getBusinessTemplateList()) - 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(validator, + ('erp5_core',) + TestXHTML.getBusinessTemplateList()) suite = unittest.TestSuite() suite.addTest(unittest.makeSuite(TestXHTML)) return suite -- 2.30.9