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