[Grok-dev] Testing and events
Noe Nieto
nnieto at noenieto.com
Wed Apr 11 02:01:31 UTC 2012
I'm doing integration testing and my app has an event subscription to
grok.IApplicationInitializedEvent.
When setting up my layer I'm doing the following (layer is
zope.fanstatic.testing.ZopeFanstaticBrowserLayer):
def setUp(self):
#Add test app
from consworks.app import Consworks
import grok
self.root = self.layer.getRootFolder()
self.root['app'] = Consworks()
grok.notify(grok.IApplicationInitializedEvent)
But the handler for IApplicationInitializedEvent is not being called. What
else do I need to do to make it work?
--
---
Noe Nieto
NNieto Consulting Services
M: nnieto at noenieto.com
W: http://noenieto.com
T: @tzicatl <https://twitter.com/#%21/tzicatl>
Li: Perfil en LinkedIn <http://www.linkedin.com/profile/view?id=84300665>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.zope.org/pipermail/grok-dev/attachments/20120410/ad9d3a26/attachment.html>
More information about the Grok-dev
mailing list