Commit 69767b4b authored by Nicolas Dumazet's avatar Nicolas Dumazet

fix testFolder.test_upgradeObjectClassWithStrings with portal type classes code

testFolder is matching objects of a folder against a criterion and changing their
class if they match.
This test case in particular was using obj.__class__.__name__ as a criterion,
and the values have changed with portal type classes.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@39651 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2bf0da2b
......@@ -240,8 +240,8 @@ class TestFolder(ERP5TypeTestCase, LogInterceptor):
type_list = ['Folder', 'Category' ]
self._setAllowedContentTypesForFolderType(type_list)
obj = self.folder.newContent(portal_type="Category")
from_class_as_string = 'Products.ERP5Type.Document.Category.Category'
to_class_as_string = 'Products.ERP5Type.Document.Folder.Folder'
from_class_as_string = 'erp5.portal_type.Category'
to_class_as_string = 'erp5.portal_type.Folder'
from_class = obj.__class__
to_class = self.folder.__class__
test_script = self._createUpgradeObjectClassPythonScript()
......
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