def METHOD_NAME(
    api_client, checkout_with_voucher
):
    assert checkout_with_voucher.voucher_code is not None
    checkout_id = graphene.Node.to_global_id("Checkout", checkout_with_voucher.pk)
    variables = {
        "checkoutId": checkout_id,
        "token": checkout_with_voucher.token,
        "promoCode": checkout_with_voucher.voucher_code,
    }
    data = _mutate_checkout_remove_promo_code(api_client, variables)
    assert len(data["errors"]) == 1
    assert not data["checkout"]
    assert data["errors"][0]["code"] == CheckoutErrorCode.GRAPHQL_ERROR.name