def test_is_not_logged_in():
with app.app_context():
with app.test_request_context():
views.session.clear()
response = views.is_logged_in()
assert (response.status_code == views.STATUS_CODE['UNAUTHORIZED'])
评论列表
文章目录