Example #1
0
 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()
Example #2
0
 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()
Example #3
0
 def setUp(self):
     prepare_db_for_tests()
     self.user = create_user("pouet", "pouet")
     self.depute = Depute(test_depute).save()
Example #4
0
    def setUp(self):
        prepare_db_for_tests()

        self.depute = Depute(test_depute)
        self.depute = self.depute.save()
Example #5
0
 def setUp(self):
     prepare_db_for_tests()
 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()