diff options
| author | uco (Open ERP) <uco@tinyerp.com> | 2010-09-08 10:00:24 +0530 |
|---|---|---|
| committer | uco (Open ERP) <uco@tinyerp.com> | 2010-09-08 10:00:24 +0530 |
| commit | 6ac408938f99313d0f076357378bbc80e3a3ae73 (patch) | |
| tree | 42441639c0dcfcf1daa25af7dbb470e155b0d460 /addons/base_module_quality/method_test/method_test.py | |
| parent | 57859931ae964d73601a98cd2f1aa6b3d90c3852 (diff) | |
| parent | 62c647ea9efd11c9bed6ab79f5026b434e5ae858 (diff) | |
[MERGE]
bzr revid: uco@tinyerp.com-20100908043024-082xdeyai0ujmqpv
Diffstat (limited to 'addons/base_module_quality/method_test/method_test.py')
| -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: |
