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)
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)