def METHOD_NAME(
    conference_factory, day_factory, slot_factory, room, admin_graphql_client
):
    conference = conference_factory(
        start=datetime(2020, 4, 2, tzinfo=pytz.UTC),
        end=datetime(2020, 4, 2, tzinfo=pytz.UTC),
    )
    day = day_factory(conference=conference, day=date(2020, 4, 2))
    slot = slot_factory(day=day, hour=time(8, 45), duration=60)
    resp = admin_graphql_client.query(
        """
        mutation($input: UpdateOrCreateSlotItemInput!) {
            updateOrCreateSlotItem(input: $input) {
                ... on UpdateOrCreateSlotItemResult {
                    updatedSlots {
                        items {
                            type
                            title
                            rooms {
                                id
                            }
                        }
                    }
                }
            }
        }
        """,
        variables={
            "input": {"slotId": slot.id, "title": "Custom slot", "rooms": [room.id]}
        },
    )
    assert "errors" not in resp
    assert resp["data"]["updateOrCreateSlotItem"]["updatedSlots"][0]["items"] == [
        {"title": "Custom slot", "type": "custom", "rooms": [{"id": str(room.id)}]}
    ]