diff options
| author | pso (tiny) <pso@tinyerp.com> | 2009-01-05 11:34:12 +0530 |
|---|---|---|
| committer | pso (tiny) <pso@tinyerp.com> | 2009-01-05 11:34:12 +0530 |
| commit | cff804f5f868d6ade63995c54f32c523fa22d77c (patch) | |
| tree | f5821ee2f0567c11280a44124346b2ba8db1daf2 /addons/base_module_quality/method_test | |
| parent | 3340f800f0f570fa6948fc4da18eb921c6c6326b (diff) | |
| parent | 21f104a506545f869453c7aa9416ce40c49a1c00 (diff) | |
merge
bzr revid: pso@tinyerp.com-20090102045406-ko0sbzkugrhsq0h3
bzr revid: pso@tinyerp.com-20090105060412-448pd2c8hlm5r4e3
Diffstat (limited to 'addons/base_module_quality/method_test')
| -rw-r--r-- | addons/base_module_quality/method_test/__init__.py | 2 | ||||
| -rw-r--r-- | addons/base_module_quality/method_test/method_test.py | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/addons/base_module_quality/method_test/__init__.py b/addons/base_module_quality/method_test/__init__.py index 79850888f41..cfc1f614751 100644 --- a/addons/base_module_quality/method_test/__init__.py +++ b/addons/base_module_quality/method_test/__init__.py @@ -2,7 +2,7 @@ ############################################################################## # # OpenERP, Open Source Management Solution -# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved +# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved # $Id$ # # This program is free software: you can redistribute it and/or modify diff --git a/addons/base_module_quality/method_test/method_test.py b/addons/base_module_quality/method_test/method_test.py index 1da2e06ad97..38a07c9428b 100644 --- a/addons/base_module_quality/method_test/method_test.py +++ b/addons/base_module_quality/method_test/method_test.py @@ -2,7 +2,7 @@ ############################################################################## # # OpenERP, Open Source Management Solution -# Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved +# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved # $Id$ # # This program is free software: you can redistribute it and/or modify @@ -38,6 +38,7 @@ class quality_test(base_module_quality.abstract_quality_check): # #""" self.bool_installed_only = True + self.ponderation = 1.0 return None def run_test(self, cr, uid, module_path, module_state): @@ -47,7 +48,6 @@ class quality_test(base_module_quality.abstract_quality_check): result = {} ok_count = 0 ex_count = 0 - error = False for obj in obj_list: temp = [] try: @@ -84,14 +84,14 @@ class quality_test(base_module_quality.abstract_quality_check): This test checks if the module classes are raising exception when calling basic methods or no. -""" + "Score: " + str(self.score) + "/10\n" +""" #+ "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 = "" - error = True - self.result = self.format_table(test='method', header=header_list, data_list=[summary,result,error]) + self.error = True + self.result = self.format_table(test='method', header=header_list, data_list=[summary,result,self.error]) return None |
