Re: testing under Plone 5
Timo Stollenwerk <tisto-z4DKO/[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Héctor, the Plone 5 test setup does not provide any content types by default. You have to install either ATContentTypes or p.a.contenttypes in your testing profile. Here is an example of how to use the p.a.contenttypes layer in a product: https://github.com/plone/plone.app.discussion/blob/master/plone/app/discussion/testing.py#L26 Cheers, Timo Am 04.08.2014 um 16:43 schrieb Héctor Velarde: > hi there! > > some time ago I started adding support for testing our add-ons using > Plone 5, but I haven't take it seriously until now. > > I'm getting the following error: > > InvalidParameterError: Cannot add a 'Folder' object to the container. > > does that means that I need to manually install the content types on my > tests? do I have to manually register some ZCML? > > best regards > > > ------------------------------------------------------------------------------ > Infragistics Professional > Build stunning WinForms apps today! > Reboot your WinForms applications with our WinForms controls. > Build a bridge from your legacy apps to the future. > http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk > > > > _______________________________________________ > Plone-developers mailing list > Plone-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org > https://lists.sourceforge.net/lists/listinfo/plone-developers > ------------------------------------------------------------------------------ Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk