summaryrefslogtreecommitdiff
path: root/addons/base_module_quality/structure_test
diff options
context:
space:
mode:
authormra (Open ERP) <mra@tinyerp.com>2009-09-24 17:54:48 +0530
committermra (Open ERP) <mra@tinyerp.com>2009-09-24 17:54:48 +0530
commit48cad3549282beb06747aaa63caa91a5ffa12260 (patch)
treed983649f0fd78d2b5c0c39d8aa110c1e95a0b883 /addons/base_module_quality/structure_test
parentf8383842135329c0c100bc654d7cba562b51c894 (diff)
[IMP] base_module_quality: modify all tests result display for buildpot, use class on tag instead of css file
bzr revid: mra@tinyerp.com-20090924122448-iw771j32awal2b2u
Diffstat (limited to 'addons/base_module_quality/structure_test')
-rw-r--r--addons/base_module_quality/structure_test/structure_test.py20
1 files changed, 18 insertions, 2 deletions
diff --git a/addons/base_module_quality/structure_test/structure_test.py b/addons/base_module_quality/structure_test/structure_test.py
index e89c68cdefb..5c43d3a0e10 100644
--- a/addons/base_module_quality/structure_test/structure_test.py
+++ b/addons/base_module_quality/structure_test/structure_test.py
@@ -170,10 +170,26 @@ This test checks if the module satisfy tiny structure
return score
def get_result_details(self, dict_struct):
- str_html = '''<html><head></head><body><table>'''
- header = ('<tr><th>%s</th><th>%s</th></tr>', [_('File Name'), _('Feedback about structure of module')])
+ str_html = '''<html><head>
+ <style>
+ .bstyle
+ {
+ border-width:2px;
+ border-style:dashed;
+ border-color: gray;
+ }
+ .btstyle
+ {
+ border-width:2px;
+ border-style:solid;
+ border-color: gray;
+ }
+ }
+ </style></head><body><table class="bstyle">'''
+ header = ('<tr><th class="btstyle">%s</th><th class="btstyle">%s</th></tr>', [_('File Name'), _('Feedback about structure of module')])
if not self.error:
res = str_html + self.format_html_table(header, data_list=dict_struct) + '</table></body></html>'
+ res = res.replace('''<td''', '''<td class="btstyle" ''')
return res
return ""