def METHOD_NAME(
    submission_factory,
    graphql_client,
    schedule_item_factory,
    slot_factory,
    day_factory,
):
    submission = submission_factory(
        speaker_id=50000,
    )
    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 response["errors"][0]["message"] == "User not logged in"
    assert response["data"]["scheduleInvitation"] is None