diff options
| author | Harry (OpenERP) <hmo@tinyerp.com> | 2010-09-11 14:46:46 +0530 |
|---|---|---|
| committer | Harry (OpenERP) <hmo@tinyerp.com> | 2010-09-11 14:46:46 +0530 |
| commit | 1bf8bcae6fbffde50aff4c5c1fe0c2b4f08b078e (patch) | |
| tree | 95babd824e29159318e1298d48836f1866d8f43f /addons/base_module_quality/method_test | |
| parent | be82397241ba50f2b7f1348cdb81daefac54c661 (diff) | |
| parent | 394bc2fd2e23f356baab38896c1a139e5b8bb04d (diff) | |
[MERGE]
bzr revid: hmo@tinyerp.com-20100911091646-ixd2qb1yb7espiuj
Diffstat (limited to 'addons/base_module_quality/method_test')
| -rw-r--r-- | addons/base_module_quality/method_test/method_test.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/addons/base_module_quality/method_test/method_test.py b/addons/base_module_quality/method_test/method_test.py index ef4e3f59ea3..2884e064b54 100644 --- a/addons/base_module_quality/method_test/method_test.py +++ b/addons/base_module_quality/method_test/method_test.py @@ -53,21 +53,21 @@ This test checks if the module classes are raising exception when calling basic pool.get(obj).search(cr, uid, []) temp.append(_('Ok')) ok_count += 1 - except: + except Exception: temp.append(_('Exception')) ex_count += 1 try: pool.get(obj).fields_view_get(cr, uid,) temp.append(_('Ok')) ok_count += 1 - except: + except Exception: temp.append(_('Exception')) ex_count += 1 try: pool.get(obj).read(cr, uid, []) temp.append(_('Ok')) ok_count += 1 - except: + except Exception: temp.append(_('Exception')) ex_count += 1 result_dict[obj] = temp @@ -78,6 +78,7 @@ This test checks if the module classes are raising exception when calling basic return None def get_result(self, dict_method): + # TODO: improve header = ('{| border="1" cellspacing="0" cellpadding="5" align="left" \n! %-40s \n! %-16s \n! %-20s \n! %-16s ', [_('Object Name'), 'search()', 'fields_view_get()', 'read()']) detail = "" if not self.error: |
