def _app(self): '''Returns the app object for a test.''' app = Zope2.app(Zope2.sandbox().open()) AppZapper().set(app) app = utils.makerequest(app) connections.register(app) return app
def app(): """Opens a ZODB connection and returns the app object.""" app = Zope2.app() app = utils.makerequest(app) connections.register(app) return app
def app(): '''Opens a ZODB connection and returns the app object.''' app = Zope2.app() app = utils.makerequest(app) connections.register(app) return app