Ejemplo n.º 1
0
 def setUp(self):
     super(TestDispatcherDB, self).setUp()
     self.CONF = self.useFixture(fixture_config.Config()).conf
     self.CONF.set_override('connection', 'sqlite://', group='database')
     self.meter_dispatcher = database.MeterDatabaseDispatcher(self.CONF)
     self.event_dispatcher = database.EventDatabaseDispatcher(self.CONF)
     self.ctx = None
Ejemplo n.º 2
0
 def setUp(self):
     super(TestDispatcherDB, self).setUp()
     conf = service.prepare_service([], [])
     self.CONF = self.useFixture(fixture_config.Config(conf)).conf
     self.CONF.set_override('connection', 'sqlite://', group='database')
     self.meter_dispatcher = database.MeterDatabaseDispatcher(self.CONF)