def tearDown(self): db.session.remove() db.drop_all() # def test_init_user(self): # user = user_datastore.create_user(email='*****@*****.**', password='******') # db.session.commit() # # expected = User.query.filter_by(email='*****@*****.**').first() # # self.assertEqual(user, expected) # def test_invalid_email(self): # pass # # def test_invalid_password(self): # pass # # def test_no_role_exception(self): # pass
def recreate_db(): db.drop_all() db.create_all() db.session.commit()
def tearDown(self): db.drop_all()
def tearDown(self): db.session.remove() db.drop_all(app=self.app)
def tearDown(self): """Called after each test function""" db.session.remove() db.drop_all()