Mikko Ohtamaa wrote:
Hi,

I am trying to make functional tests for code using
plone.postpublicationhook. For some reason, the hook is not called when
zc.testbrowser opens the page. Is there any example code how I could make it
callable or do I simply need to call the event handler code manually?

plone.postpublicationhook is being superseded by "real" events in the ZPublisher in Zope 2.12; in 2.10, you can install ZPublisherEventsBackport which monkey patches those back in. I suggest you use these instead.

You may also be interested in plone.transformchain.

plone.app.blocks is an example of a package using this setup with testbrowser tests. collective.xdv trunk is too, I believe.

Martin

--
Author of `Professional Plone Development`, a book for developers who
want to work with Plone. See http://martinaspeli.net/plone-book


_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to