def METHOD_NAME(
    staff_api_client, warehouse, permission_manage_apps
):
    # given
    warehouse_id = graphene.Node.to_global_id("Warehouse", warehouse.pk)
    # when
    response = staff_api_client.post_graphql(
        QUERY_WAREHOUSE,
        variables={"id": warehouse_id},
        permissions=[permission_manage_apps],
    )
    # then
    assert_no_permission(response)