def setUp(self): """Set up.""" super(BaseTestCase, self).setUp() config.load_file("configs/development.yaml") engine = create_engine("sqlite://") self.backend = kilink.kilinkbackend = backend.KilinkBackend(engine) self.app = kilink.app.test_client()
def setUp(self): """Set up.""" super(UnmockedServingTestCase, self).setUp() engine = create_engine("sqlite://") self.backend = backend.KilinkBackend(engine) kilink.kilinkbackend = self.backend self.app = kilink.app.test_client()
def setUp(self): """Set up.""" super(ServingTestCase, self).setUp() engine = create_engine("sqlite://") self.backend = backend.KilinkBackend(engine) kilink.kilinkbackend = self.backend self.app = kilink.app.test_client() _ctx = patch("kilink.kilink.render_template") self.mocked_render = _ctx.start() self.addCleanup(_ctx.stop) config.load_file("configs/development.yaml")