Exemplo n.º 1
0
    def test_reattaching_job_does_not_exist(self, get_status, update):
        """Test reattaching to a running job that does not exist."""

        get_status.side_effect = GenieJobNotFoundError

        with assert_raises(GenieJobNotFoundError) as cm:
            running_job = reattach_job('test-reattach-job-dne')
Exemplo n.º 2
0
    def test_reattaching_job_does_not_exist(self, get_status):
        """Test reattaching to a running job that does not exist."""

        get_status.side_effect = GenieJobNotFoundError

        with assert_raises(GenieJobNotFoundError) as cm:
            running_job = reattach_job('test-reattach-job-dne')
Exemplo n.º 3
0
    def test_reattaching_job(self, get_status, update):
        """Test reattaching to a running job."""

        running_job = reattach_job('test-reattach-job')

        get_status.assert_called_once_with('test-reattach-job')
Exemplo n.º 4
0
    def test_reattaching_job(self, get_status):
        """Test reattaching to a running job."""

        running_job = reattach_job('test-reattach-job')

        get_status.assert_called_once_with('test-reattach-job')