def setUp(self): super(BaseTestCase, self).setUp() self.config_fixture.config(backend='kvs', group='database') db_api.reset() root = 'kite.api.root.RootController' self.app_config = { 'app': { 'root': root, 'modules': ['kite.api'], }, } self.CRYPTO = crypto.CryptoManager.get_instance() self.DB = db_api.get_instance() self.STORAGE = storage.StorageManager.get_instance() self.app = pecan.testing.load_test_app(self.app_config) self.addCleanup(pecan.set_config, {}, overwrite=True)
def setUp(self): super(BaseTestCase, self).setUp() self.config_fixture.config(backend="kvs", group="database") api.reset()