[Product-Developers] Problem with PTC test setup
rsa at eurotux.com
Fri Jun 12 15:55:19 UTC 2009
Andreas Jung wrote:
> Hi there,
> currently writing tests for vs.event - an AT-derived event type for Plone.
> The code works perfectly in reality but the tests don't.
> This is the test setup (everything is straight-forward):
> import vs.event
> PloneTestCase.setupPloneSite(products=('vs.event', ),
AFAIU, to properly initialize content factories you need to use the
@onsetup decorator, so this function execution will be deferred until
the Plone site setup.
I hope it helps.
Ricardo Alves <rsa at eurotux.com>
More information about the Product-Developers