def METHOD_NAME(
    submission_factory,
    graphql_client,
    user,
    schedule_item_factory,
    slot_factory,
    day_factory,
):
    graphql_client.force_login(user)
    submission = submission_factory(
        speaker_id=user.id,
    )
    schedule_item_factory(
        status=ScheduleItem.STATUS.confirmed,
        speaker_invitation_notes="notes",
        submission=submission,
        type=ScheduleItem.TYPES.submission,
        conference=submission.conference,
        slot=slot_factory(
            day=day_factory(
                day=datetime.date(2020, 10, 10), conference=submission.conference
            ),
            hour=datetime.time(10, 10, 0),
            duration=30,
        ),
    )
    response = graphql_client.query(
        """query($submissionId: ID!) {
        scheduleInvitation(submissionId: $submissionId) {
            option
            notes
            dates {
                start
                end
            }
        }
    }""",
        variables={"submissionId": submission.hashid},
    )
    assert not response.get("errors")
    assert response["data"]["scheduleInvitation"] == {
        "option": "CONFIRM",
        "notes": "notes",
        "dates": [{"start": "2020-10-10T10:10:00", "end": "2020-10-10T10:40:00"}],
    }