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