Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
pieqq committed Mar 6, 2024
1 parent 2641387 commit f33a07b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions checkbox-ng/plainbox/impl/test_ctrl.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,12 +314,15 @@ def test_get_inhibitor_list__suspend_job(self):
jsm_j1 = session_state.job_state_map["j1"]
jsm_j1.job = j1
jsm_j1.result.outcome = IJobResult.OUTCOME_NONE
jsm_j1.readiness_inhibitor_list = []
jsm_j2 = session_state.job_state_map["j2"]
jsm_j2.job = j2
jsm_j2.result.outcome = IJobResult.OUTCOME_NONE
jsm_j2.readiness_inhibitor_list = []
jsm_suspend = session_state.job_state_map[Suspend.AUTO_JOB_ID]
jsm_suspend.job = suspend_job
jsm_suspend.result.outcome = IJobResult.OUTCOME_NONE
jsm_suspend.readiness_inhibitor_list = []
self.assertEqual(
self.ctrl.get_inhibitor_list(session_state, suspend_job),
[JobReadinessInhibitor(InhibitionCause.PENDING_DEP, j1, None)])
Expand Down

0 comments on commit f33a07b

Please sign in to comment.