Пример #1
0
 def get_job(self, job_id):
     raise ApiError("Unexpected error")
Пример #2
0
 def get_job(self, job_id):
     raise ApiError()
Пример #3
0
    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)
Пример #4
0
 def run_job(self, *_args, **_kwargs):
     time.sleep(0.2)
     raise ApiError()