summaryrefslogtreecommitdiff
path: root/addons/base_module_quality/method_test
diff options
context:
space:
mode:
authorqdp <qdp@tinyerp.com>2009-01-05 17:25:46 +0100
committerqdp <qdp@tinyerp.com>2009-01-05 17:25:46 +0100
commitaef3884e59c6b1aec0e0f127e3e6c1969f4289a9 (patch)
tree9368ef60dad3da78d5b3f9caefcd673130387591 /addons/base_module_quality/method_test
parentfc699edb6c93e7701e9200b8355aa5190bed7556 (diff)
improvements on base_module_quality
bzr revid: qdp@tinyerp.com-20090105162546-yr8su19er4gkih48
Diffstat (limited to 'addons/base_module_quality/method_test')
-rw-r--r--addons/base_module_quality/method_test/method_test.py18
1 files changed, 7 insertions, 11 deletions
diff --git a/addons/base_module_quality/method_test/method_test.py b/addons/base_module_quality/method_test/method_test.py
index b07e7f349e1..ed53a535bcb 100644
--- a/addons/base_module_quality/method_test/method_test.py
+++ b/addons/base_module_quality/method_test/method_test.py
@@ -67,26 +67,22 @@ class quality_test(base_module_quality.abstract_quality_check):
ex_count += 1
self.result_det[obj] = temp
self.score = (ok_count + ex_count) and float(ok_count)/float(ok_count + ex_count) or 0.0
+ self.result = self.get_result()
+ self.result_details = self.get_result_details()
+
return None
- def get_result(self, cr, uid, module_path, module_state):
- self.run_test(cr, uid, module_path)
- if not self.bool_installed_only or module_state=="installed":
- summary = """
+
+ def get_result(self):
+ summary = """
===Method Test===:
This test checks if the module classes are raising exception when calling basic methods or no.
""" + "Score: " + str(self.score) + "/10\n"
- else:
- summary =""" \n===Method Test===:
-
-The module has to be installed before running this test.\n\n """
- header_list = ""
- self.error = True
return summary
- def get_result_detail(self):
+ def get_result_details(self):
header_list = ['method', 'Object Name', 'search()', 'fields_view_get', 'read']
detail = "\n===Method Test===\n"
if not self.error: