[Erp5-report] r34133 jerome - /erp5/trunk/products/ERP5Type/tests/runFunctionalTest.py

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Mar 26 09:05:52 CET 2010


Author: jerome
Date: Fri Mar 26 09:05:51 2010
New Revision: 34133

URL: http://svn.erp5.org?rev=34133&view=rev
Log:
use css instead of adding style inline

Modified:
    erp5/trunk/products/ERP5Type/tests/runFunctionalTest.py

Modified: erp5/trunk/products/ERP5Type/tests/runFunctionalTest.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/tests/runFunctionalTest.py?rev=34133&r1=34132&r2=34133&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/tests/runFunctionalTest.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/tests/runFunctionalTest.py [utf8] Fri Mar 26 09:05:51 2010
@@ -313,12 +313,13 @@
       if error_result_re.match(e):
         detail += e
     detail = image_re.sub('', detail)
-    detail = detail.replace('<tr class="title status_failed"', 
-               '<tr class="title status_failed" style="background-color:red"')
-    detail = detail.replace('<tr class="status_failed"', 
-              '<tr class="status_failed" style="background-color:red"')
     if detail:
-      detail = '<html><body>%s</body></html>' % detail
+      detail = '''<html>
+<head>
+ <style type="text/css">tr.status_failed { background-color:red };</style>
+</head>
+<body>%s</body>
+</html>''' % detail
     status = (not failures)
     if self.send_mail:
       sendMail(subject=subject,




More information about the Erp5-report mailing list