def test_get_job_id(self): scheduler = EmopSLURM(self.settings) os.environ["SLURM_JOB_ID"] = '0001' actual = scheduler.get_job_id() self.assertEqual('0001', actual)
def test_get_job_id_not_set(self): scheduler = EmopSLURM(self.settings) self.clear_job_id_env() actual = scheduler.get_job_id() self.assertEqual(None, actual)