def setUp(self): prepare_db_for_tests() self.app = FlaskClient(app, response_wrapper=FormWrapper) self.app.application.config["CSRF_ENABLED"] = False self.depute = Depute(test_depute).save() self.user = create_user("test", "test") self.ctx = app.test_request_context() self.ctx.push()
def setUp(self): prepare_db_for_tests() self.user = create_user("pouet", "pouet") self.depute = Depute(test_depute).save()
def setUp(self): prepare_db_for_tests() self.depute = Depute(test_depute) self.depute = self.depute.save()
def setUp(self): prepare_db_for_tests()