Exemple #1
0
 def setUp(self):
     self.app = app
     self.test_app = self.app.test_client()
     db.drop_all()
     db.create_all()
     self.pre_test_setup()
Exemple #2
0
 def setUp(self):
     self.test_app = app.test_client()
     db.create_all()
 def setUp(self):
   self.test_app = app.test_client()
   db.create_all()
def create_db():
    """ Drops the database. """
    db.create_all()