Пример #1
0
 def test_retry_approved(self, MockPullReqState):
     state = MockPullReqState()
     state.try_ = False
     action.retry(state)
     state.set_status.assert_called_once_with('')
     state.change_labels.assert_called_once_with(LabelEvent.APPROVED)
Пример #2
0
 def test_retry_try(self, MockPullReqState):
     state = MockPullReqState()
     state.try_ = True
     action.retry(state)
     state.set_status.assert_called_once_with('')
     state.change_labels.assert_called_once_with(LabelEvent.TRY)