def METHOD_NAME(
    self, mock_set_form_data, mock_update_job
):
    app._got_first_request = False
    async_query_manager.init_app(app)
    user = security_manager.find_user("gamma")
    form_data = {}
    job_metadata = {
        "channel_id": str(uuid4()),
        "job_id": str(uuid4()),
        "user_id": user.id,
        "status": "pending",
        "errors": [],
    }
    with pytest.raises(SupersetException):
        load_explore_json_into_cache(job_metadata, form_data)
    mock_set_form_data.assert_called_once_with(form_data)
    errors = ["The dataset associated with this chart no longer exists"]
    mock_update_job.assert_called_once_with(job_metadata, "error", errors=errors)