Commit d5e02a17 authored by Aurel's avatar Aurel Committed by Arnaud Fontaine

manage_delObject now raises

parent 6939bd81
......@@ -32,6 +32,7 @@ from unittest import expectedFailure
from lxml import etree
from Products.Formulator.FormToXML import formToXML
from Products.Formulator.TALESField import TALESMethod
from zExceptions import BadRequest
from Products.Formulator.XMLToForm import XMLToForm
from Products.ERP5Form.ProxyField import BrokenProxyField
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
......@@ -57,7 +58,10 @@ class TestProxyField(ERP5TypeTestCase):
"""Remove objects created in tests."""
# Remove forms
custom_folder = self.getSkinsTool().custom
custom_folder.manage_delObjects(custom_folder.objectIds())
try:
custom_folder.manage_delObjects(custom_folder.objectIds())
except BadRequest:
pass
# Remove skin folders
if 'erp5_geek' in self.getSkinsTool().objectIds():
......
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