[Product-Developers] Problem with PTC test setup
lists at zopyx.com
Fri Jun 12 16:03:25 UTC 2009
On 12.06.09 17:55, Ricardo Alves wrote:
> Andreas Jung wrote:
>> Hi there,
>> currently writing tests for vs.event - an AT-derived event type for
>> 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.
> def setup_package():
> import vs.event
> zcml.load_config('configure.zcml', vs.event)
Thanks for the evil and magical boilerplate - it's working now.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 316 bytes
Desc: not available
More information about the Product-Developers