def setup_controller(self): self.job_run = mock.create_autospec(jobrun.JobRun, run_time=mock.Mock(), cancel=mock.Mock()) self.job_scheduler = mock.create_autospec(job.JobScheduler) self.controller = controller.JobRunController(self.job_run, self.job_scheduler)
def __init__(self, job_run, job_scheduler): resource.Resource.__init__(self) self.job_run = job_run self.job_scheduler = job_scheduler self.controller = controller.JobRunController(job_run, job_scheduler)