Commit 363ef5e1 authored by Jérome Perrin's avatar Jérome Perrin Committed by Vincent Pelletier

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 8346ca70
......@@ -3033,7 +3033,7 @@ class Test(ERP5TypeTestCase):
import erp5.portal_type
name = self._testMethodName
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")
self.assertEqual(file.size, len("foo"))
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