Пример #1
0
    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()
Пример #2
0
    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()
Пример #3
0
    def test_transport_wsgi(self):
        bootstrap = marconi.Bootstrap('etc/wsgi_sqlite.conf')

        self.assertIsInstance(bootstrap.transport, wsgi.Driver)
Пример #4
0
 def test_transport_invalid(self):
     conf_file = 'etc/drivers_transport_invalid.conf'
     bootstrap = marconi.Bootstrap(conf_file)
     self.assertRaises(exceptions.InvalidDriver,
                       lambda: bootstrap.transport)
Пример #5
0
 def test_storage_sqlite(self):
     conf_file = 'etc/wsgi_sqlite.conf'
     bootstrap = marconi.Bootstrap(conf_file)
     self.assertIsInstance(bootstrap.storage, sqlite.Driver)
Пример #6
0
    def app_factory(self, global_config, **local_config):
        wsgi_app = marconi.Bootstrap('etc/wsgi.conf')

        return wsgi_app.transport.app