[Erp5-report] r31789 jm - /erp5/trunk/products/ERP5/tests/testXHTML.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Jan 15 19:56:53 CET 2010


Author: jm
Date: Fri Jan 15 19:56:53 2010
New Revision: 31789

URL: http://svn.erp5.org?rev=31789&view=rev
Log:
Revert part of [31788] because it prevents projects to reuse testXHTML for their own BT

See also [27652]

Modified:
    erp5/trunk/products/ERP5/tests/testXHTML.py

Modified: erp5/trunk/products/ERP5/tests/testXHTML.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testXHTML.py?rev=31789&r1=31788&r2=31789&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testXHTML.py [utf8] (original)
+++ erp5/trunk/products/ERP5/tests/testXHTML.py [utf8] Fri Jan 15 19:56:53 2010
@@ -562,14 +562,13 @@
   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




More information about the Erp5-report mailing list