def METHOD_NAME(
    site_settings_with_reservations,
    staff_api_client,
    stock,
    checkout_line_with_reservation_in_many_stocks,
    permission_manage_products,
):
    # given
    Reservation.objects.update(reserved_until=timezone.now() - timedelta(minutes=2))
    staff_api_client.user.user_permissions.add(permission_manage_products)
    stock_id = graphene.Node.to_global_id("Stock", stock.pk)
    # when
    response = staff_api_client.post_graphql(QUERY_STOCK, variables={"id": stock_id})
    # then
    content = get_graphql_content(response)
    content_stock = content["data"]["stock"]
    assert (
        content_stock["productVariant"]["product"]["name"]
        == stock.product_variant.product.name
    )
    assert content_stock["warehouse"]["name"] == stock.warehouse.name
    assert content_stock["quantity"] == stock.quantity
    assert content_stock["quantityAllocated"] == get_quantity_allocated_for_stock(stock)
    assert content_stock["quantityReserved"] == 0