def METHOD_NAME(mocker):
    return_value = AuthError("oh no")
    api_job_cls = dummy_job_factory(mocker, return_value)
    api_job = api_job_cls()
    mock_api_client = mocker.MagicMock()
    mock_session = mocker.MagicMock()
    with pytest.raises(ApiInaccessibleError):
        api_job._do_call_api(mock_api_client, mock_session)
    assert not api_job.success_signal.emit.called
    assert not api_job.failure_signal.emit.called