def setUp(self): settings = dict( mongo_uri = "mongodb://127.0.0.1", mongo_name = "audrey_unittests", elastic_uri = "thrift://127.0.0.1:9500", ) import audrey root_cls = _getExampleRootClass() self.app = audrey.audrey_main(root_cls, root_cls, {}, **settings) self.mongo_conn = self.app.registry.settings['mongo_conn'] self.elastic_conn = self.app.registry.settings['elastic_conn'] self.settings = self.app.registry.settings self.request = testing.DummyRequest() self.request.registry = self.app.registry
def main(global_config, **settings): # pragma: no cover """ This function returns a Pyramid WSGI application. """ return audrey.audrey_main(root_factory, Root, global_config, **settings)