def METHOD_NAME(
    app_api_client, permission_manage_apps, app, payment_app
):
    # given
    app_id = graphene.Node.to_global_id("App", payment_app.pk)
    app_api_client.app = app
    # when
    response = execute_update_public_metadata_for_item(
        app_api_client,
        permission_manage_apps,
        app_id,
        "App",
    )
    # then
    assert item_contains_proper_public_metadata(
        response["data"]["updateMetadata"]["item"], payment_app, app_id
    )