views_test.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:caproomster 作者: lancelafontaine 项目源码 文件源码
def test_is_logged_in():
    with app.app_context():
        with app.test_request_context():
            views.session.clear()
            views.session.update({'logged_in': True, 'username': 'loggedIn!'})
            response = views.is_logged_in()
            assert (response.status_code == views.STATUS_CODE['OK'])
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号