예제 #1
0
    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()
예제 #3
0
 def tearDown(self):
     db.drop_all()
예제 #4
0
 def tearDown(self):
     db.session.remove()
     db.drop_all(app=self.app)
예제 #5
0
 def tearDown(self):
     """Called after each test function"""
     db.session.remove()
     db.drop_all()