def get_job(self, job_id): raise ApiError('Unexpected error')
def get_job(self, job_id): raise ApiError()
def get_job(self, job_id): if self._number_of_exceptions_to_throw != 0: self._number_of_exceptions_to_throw -= 1 raise ApiError() return super().get_job(job_id)
def run_job(self, *_args, **_kwargs): time.sleep(0.2) raise ApiError()