def test_api_user_get_me_awards_logged_in():
    """Can a user get /api/v1/users/me/awards if logged in"""
    app = create_ctfd(user_mode="users")
    with app.app_context():
        register_user(app)
        with login_as_user(app) as client:
            r = client.get("/api/v1/users/me/awards")
            assert r.status_code == 200
    destroy_ctfd(app)
Can a user get /api/v1/users/me/awards if logged in
tests/api/v1/test_users.py