base module quality..format the form

bzr revid: mra@tinyerp.com-20081224072046-i2e91527kxqy6iia
This commit is contained in:
mra (Open ERP)
2008-12-24 12:50:46 +05:30
parent 22e08146f9
commit dd30ce0e8b
5 changed files with 11 additions and 19 deletions
@@ -31,11 +31,10 @@ class quality_test(base_module_quality.abstract_quality_check):
def __init__(self):
self.result = """
===Method Test===
===Method Test===:
This test checks if the module classes are raising exception when calling basic methods or no.
"""
self.bool_installed_only = True
return None
@@ -79,15 +78,13 @@ This test checks if the module classes are raising exception when calling basic
temp.append('Exception')
ex_count += 1
result[obj] = temp
self.result+=('{| border="1" cellspacing="0" cellpadding="5" align="left" \n! %-40s \n! %-16s \n! %-20s \n! %-16s ') % ('Object Name'.ljust(40), 'search()'.ljust(16), 'fields_view_get()'.ljust(20), 'read()'.ljust(16))
self.result += ('{| border="1" cellspacing="0" cellpadding="5" align="left" \n! %-40s \n! %-16s \n! %-20s \n! %-16s ') % ('Object Name'.ljust(40), 'search()'.ljust(16), 'fields_view_get()'.ljust(20), 'read()'.ljust(16))
for res in result:
self.result += ('\n|-\n| %s \n| %s \n| %s \n| %s ') % (res, result[res][0],result[res][1], result[res][2])
self.result += '\n|}'
print "RES", self.result
self.score = (ok_count + ex_count) and float(ok_count)/float(ok_count + ex_count) or 0.0
return None