Commit c7239458 authored by Jérome Perrin's avatar Jérome Perrin

testDynamicClassGeneration: explicitly create a Base Type in test

Some other types (Gadget Type) are currently lacking the interaction workflow
which resets the dynamic classes.
parent e4a52743
...@@ -3033,7 +3033,7 @@ class Test(ERP5TypeTestCase): ...@@ -3033,7 +3033,7 @@ class Test(ERP5TypeTestCase):
import erp5.portal_type import erp5.portal_type
name = self._testMethodName name = self._testMethodName
types_tool = self.portal.portal_types types_tool = self.portal.portal_types
ptype = types_tool.newContent(name, type_class="File") ptype = types_tool.newContent(name, type_class="File", portal_type='Base Type')
file = ptype.constructInstance(self.portal, name, data="foo") file = ptype.constructInstance(self.portal, name, data="foo")
self.assertEqual(file.size, len("foo")) self.assertEqual(file.size, len("foo"))
self.commit() self.commit()
......
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