Commit 8f86bf78 authored by Aurel's avatar Aurel Committed by Arnaud Fontaine

manage_delObject now raises

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