예제 #1
0
    def test_unpauses_when_paused(self, go_server):
        cmd = Unpause(go_server, 'Simple-Pipeline')
        cmd.pipeline.status.return_value = dict(paused=True)
        cmd.run()

        cmd.pipeline.unpause.assert_called_with()
예제 #2
0
    def test_doesnt_run_if_already_unpaused(self, go_server):
        cmd = Unpause(go_server, 'Simple-Pipeline')
        cmd.pipeline.status.return_value = dict(paused=False)
        cmd.run()

        assert not cmd.pipeline.unpause.called