def test_get_severity_returns_high_for_succeeded_other_job( self, mock_logger): expected = HIGH_SEVERITY actual = batch_job_handler.get_severity( OTHER_JOB_QUEUE, SUCCEEDED_JOB_STATUS, JOB_NAME, )
def test_get_severity_returns_high_for_other_status(self, mock_logger): expected = MEDIUM_SEVERITY actual = batch_job_handler.get_severity( OTHER_JOB_QUEUE, RUNNABLE_JOB_STATUS, JOB_NAME, ) self.assertEqual(expected, actual)
def test_get_severity_returns_high_for_failed_other_job(self, mock_logger): expected = HIGH_SEVERITY actual = batch_job_handler.get_severity( OTHER_JOB_QUEUE, FAILED_JOB_STATUS, JOB_NAME, ) self.assertEqual(expected, actual)
def test_get_severity_returns_high_for_succeeded_pt_job(self, mock_logger): expected = HIGH_SEVERITY actual = batch_job_handler.get_severity( PT_JOB_QUEUE, SUCCEEDED_JOB_STATUS, JOB_NAME, ) self.assertEqual(expected, actual)
def test_get_severity_returns_critical_for_failed_pdm_job( self, mock_logger): expected = CRITICAL_SEVERITY actual = batch_job_handler.get_severity( PDM_JOB_QUEUE, FAILED_JOB_STATUS, JOB_NAME, ) self.assertEqual(expected, actual)