Commit ba7d5678 authored by Yusei Tahara's avatar Yusei Tahara

Fixed the test. content_type_registry will be removed in the middle of the unittest.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20202 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 305e8366
......@@ -83,8 +83,9 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
self._catch_log_errors()
# remove default predicate which matches anything
content_type_registry = portal.content_type_registry
if 'any' in content_type_registry.predicate_ids:
content_type_registry = getattr(portal, 'content_type_registry', None)
if (content_type_registry is not None and
'any' in content_type_registry.predicate_ids):
content_type_registry.removePredicate('any')
get_transaction().commit()
......
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