diff --git a/product/ERP5/tests/testBusinessTemplate.py b/product/ERP5/tests/testBusinessTemplate.py index ca0796e5806cf9a9fc3af075bd5b81196664f714..fb4c65201abc132527b1f1ba4530dba09e1b7fef 100644 --- a/product/ERP5/tests/testBusinessTemplate.py +++ b/product/ERP5/tests/testBusinessTemplate.py @@ -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()