Commit 878b5286 authored by Jérome Perrin's avatar Jérome Perrin

Assert no errors are LOGged



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@9155 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a53b79fe
......@@ -47,9 +47,10 @@ from Products.ERP5Type.tests.Sequence import SequenceList
from urllib import pathname2url
from Globals import PersistentMapping
from Products.CMFCore.Expression import Expression
from Products.CMFCore.tests.base.testcase import LogInterceptor
import os
class TestBusinessTemplate(ERP5TypeTestCase):
class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
"""
Test these operations:
......@@ -81,6 +82,7 @@ class TestBusinessTemplate(ERP5TypeTestCase):
self.login()
portal = self.getPortal()
catalog_tool = self.getCatalogTool()
self._catch_log_errors()
def beforeTearDown(self):
"""Remove objects created tests."""
......@@ -93,6 +95,7 @@ class TestBusinessTemplate(ERP5TypeTestCase):
if 'geek_workflow' in self.getWorkflowTool().objectIds():
self.getWorkflowTool().manage_delObjects(['geek_workflow'])
get_transaction().commit()
self._ignore_log_errors()
def login(self):
uf = self.getPortal().acl_users
......
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