Commit c9ca8c2e authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

do not raise an error immediately but report all failures in test_callableListMethodInListbox.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@29416 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent db7994cd
......@@ -194,11 +194,11 @@ class TestXHTML(ERP5TypeTestCase):
list_method = field.get_value("list_method")
if list_method:
if isinstance(list_method, str):
method = getattr(self.portal, list_method)
method = getattr(self.portal, list_method, None)
else:
method = list_method
if not callable(method):
error_list.append(form_path)
error_list.append((form_path, list_method))
self.assertEquals(error_list, [])
def test_moduleListMethod(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment