Exemple #1
0
    def test_pause_pipeline(self):
        act_result = api.pause_pipeline(self.pipeline_id)

        Status.objects.transit.assert_called_once_with(id=self.pipeline_id,
                                                       to_state=states.SUSPENDED,
                                                       is_pipeline=True,
                                                       appoint=True)

        self.assertTrue(act_result.result)
Exemple #2
0
def pause_pipeline(pipeline_id):
    return api.pause_pipeline(pipeline_id)