Commit c4a9e8a6 authored by Yusei Tahara's avatar Yusei Tahara

Remove default predicate which matches anything for test.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20175 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9ef927a0
......@@ -82,6 +82,12 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
sql_connection.manage_test(sql)
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.removePredicate('any')
get_transaction().commit()
def beforeTearDown(self):
"""Remove objects created tests."""
pw = self.getWorkflowTool()
......
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