[Erp5-report] r41688 nicolas.dumazet - /erp5/trunk/products/ERP5Type/tests/

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Dec 23 00:44:48 CET 2010


Author: nicolas.dumazet
Date: Thu Dec 23 00:44:48 2010
New Revision: 41688

URL: http://svn.erp5.org?rev=41688&view=rev
Log:
postpone import to make sure it exists / breaks only one test if it fails

Modified:
    erp5/trunk/products/ERP5Type/tests/testDynamicClassGeneration.py

Modified: erp5/trunk/products/ERP5Type/tests/testDynamicClassGeneration.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/tests/testDynamicClassGeneration.py?rev=41688&r1=41687&r2=41688&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/tests/testDynamicClassGeneration.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/tests/testDynamicClassGeneration.py [utf8] Thu Dec 23 00:44:48 2010
@@ -1016,9 +1016,6 @@ class TestZodbPropertySheet(ERP5TypeTest
 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 TestZodbImportFilesystemPropertySh
     # 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']] = \



More information about the Erp5-report mailing list