def test_job_queue_events_in_correct_order(self, job_queue_events_for_sleep_job): assert in_order( job_queue_events_for_sleep_job, [ SetJobStatus(JobStatus.IDLE), SetJobStatus(JobStatus.RUNNING), SetJobStatus(JobStatus.COMPLETED), ], )
def test_all_jobs_ran(self, condor, all_jobs_ran): for jobid in all_jobs_ran.job_ids: assert in_order( condor.job_queue.by_jobid[jobid], [ SetJobStatus(JobStatus.IDLE), SetJobStatus(JobStatus.RUNNING), SetJobStatus(JobStatus.COMPLETED), ], )
def test_allowed_job_duration_sequence(self, test_job_queue_events): assert in_order(test_job_queue_events, [ SetJobStatus(JobStatus.IDLE), SetJobStatus(JobStatus.RUNNING), SetJobStatus(JobStatus.HELD), ])