def get_profile():
    """Permite consultar el perfil de un usuario"""
    uid = get_jwt_identity()
    user = UserService.get_profile(uid)
    return jsonify(user), 200
Exemple #2
0
def test_get_profile_if_not_found_raises_not_found_error(
        get_one_mock, user_data):
    get_one_mock.return_value = None
    with pytest.raises(NotFoundError):
        UserService.get_profile(user_data.uid)