Commit 11129871 authored by Nicolas Dumazet's avatar Nicolas Dumazet

postpone import to make sure it exists / breaks only one test if it fails


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41688 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0a577b9e
......@@ -1016,9 +1016,6 @@ class TestZodbPropertySheet(ERP5TypeTestCase):
from Products.ERP5Type import PropertySheet
from Products.CMFCore.Expression import Expression
from Products.ERP5Type.PropertySheet.StandardProperty import StandardProperty
from Products.ERP5Type.PropertySheet.AcquiredProperty import AcquiredProperty
class TestZodbImportFilesystemPropertySheet(ERP5TypeTestCase):
"""
Check that importing filesystem Property Sheets into ZODB the same
......@@ -1044,6 +1041,9 @@ class TestZodbImportFilesystemPropertySheet(ERP5TypeTestCase):
# meaningful because exporting a property relies on accessor which
# returns the default value if the field value is not set
self.filesystem_field_default_value_dict = {}
from Products.ERP5Type.PropertySheet.StandardProperty import StandardProperty
from Products.ERP5Type.PropertySheet.AcquiredProperty import AcquiredProperty
for property_dict in StandardProperty._properties + AcquiredProperty._properties:
try:
self.filesystem_field_default_value_dict[property_dict['id']] = \
......
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