def METHOD_NAME(
    staff_api_client, site_settings, permission_manage_gift_card
):
    # given
    assert (
        site_settings.gift_card_expiry_type == GiftCardSettingsExpiryType.NEVER_EXPIRE
    )
    expiry_type = GiftCardSettingsExpiryTypeEnum.NEVER_EXPIRE.name
    variables = {
        "input": {
            "expiryType": expiry_type,
        }
    }
    # when
    response = staff_api_client.post_graphql(
        GIFT_CARD_SETTINGS_UPDATE_MUTATION,
        variables,
        permissions=(permission_manage_gift_card,),
    )
    # then
    content = get_graphql_content(response)
    data = content["data"]["giftCardSettingsUpdate"]
    assert not data["errors"]
    assert data["giftCardSettings"]
    assert data["giftCardSettings"]["expiryType"] == expiry_type
    assert data["giftCardSettings"]["expiryPeriod"] is None