def setUp(self): super(TestCreateQueue, self).setUp() conf_file = self.conf_path('wsgi_reference.conf') boot = marconi.Bootstrap(conf_file) self.app = boot.transport.app self.srmock = testing.StartResponseMock()
def setUp(self): super(TestBase, self).setUp() if self.config_filename is None: self.skipTest('No config specified') conf_file = self.conf_path(self.config_filename) boot = marconi.Bootstrap(conf_file) self.app = boot.transport.app self.srmock = testing.StartResponseMock()
def test_transport_wsgi(self): bootstrap = marconi.Bootstrap('etc/wsgi_sqlite.conf') self.assertIsInstance(bootstrap.transport, wsgi.Driver)
def test_transport_invalid(self): conf_file = 'etc/drivers_transport_invalid.conf' bootstrap = marconi.Bootstrap(conf_file) self.assertRaises(exceptions.InvalidDriver, lambda: bootstrap.transport)
def test_storage_sqlite(self): conf_file = 'etc/wsgi_sqlite.conf' bootstrap = marconi.Bootstrap(conf_file) self.assertIsInstance(bootstrap.storage, sqlite.Driver)
def app_factory(self, global_config, **local_config): wsgi_app = marconi.Bootstrap('etc/wsgi.conf') return wsgi_app.transport.app