def METHOD_NAME(mocked_disp, user, job_user_id):
    # set job to error status
    data = {"job_id": job_user_id, "status": "success"}
    user.post("/api/v1/jobstates", data=data)
    job = user.get(
        "/api/v1/jobs/%s?embed=components,topic,remoteci,results" % job_user_id
    )
    job = job.data["job"]
    email_event = notifications.get_job_event(job, ["user@exameple.org"])
    assert email_event is None