From: Hugh Brown Date: Fri, 11 Oct 2013 01:39:06 +0000 (-0400) Subject: Patch tests and utils: exceptions to custom_exceptions X-Git-Tag: v0.2.23~92^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0c34694ff6ba0b859ef698fd864397cb5f21276d;p=tools%2Fpython-jenkinsapi.git Patch tests and utils: exceptions to custom_exceptions --- diff --git a/jenkinsapi_tests/systests/test_downstream_upstream.py b/jenkinsapi_tests/systests/test_downstream_upstream.py index 98f3c80..45fef35 100644 --- a/jenkinsapi_tests/systests/test_downstream_upstream.py +++ b/jenkinsapi_tests/systests/test_downstream_upstream.py @@ -4,7 +4,7 @@ System tests for `jenkinsapi.jenkins` module. import time import logging import unittest -from jenkinsapi.exceptions import NoBuildData +from jenkinsapi.custom_exceptions import NoBuildData from jenkinsapi_tests.systests.base import BaseSystemTest log = logging.getLogger(__name__) diff --git a/jenkinsapi_tests/unittests/test_jenkins.py b/jenkinsapi_tests/unittests/test_jenkins.py index d42b9d3..a8719bb 100644 --- a/jenkinsapi_tests/unittests/test_jenkins.py +++ b/jenkinsapi_tests/unittests/test_jenkins.py @@ -2,7 +2,7 @@ import mock import unittest from jenkinsapi.utils.requester import Requester -from jenkinsapi.exceptions import JenkinsAPIException +from jenkinsapi.custom_exceptions import JenkinsAPIException from jenkinsapi.jenkins import Jenkins, JenkinsBase, Job from jenkinsapi.plugins import Plugins diff --git a/jenkinsapi_tests/unittests/test_job.py b/jenkinsapi_tests/unittests/test_job.py index c7d14c2..e01d1c2 100644 --- a/jenkinsapi_tests/unittests/test_job.py +++ b/jenkinsapi_tests/unittests/test_job.py @@ -4,7 +4,7 @@ import unittest from jenkinsapi import config from jenkinsapi.job import Job from jenkinsapi.jenkinsbase import JenkinsBase -from jenkinsapi.exceptions import NoBuildData +from jenkinsapi.custom_exceptions import NoBuildData class TestJob(unittest.TestCase): diff --git a/jenkinsapi_tests/unittests/test_job_get_all_builds.py b/jenkinsapi_tests/unittests/test_job_get_all_builds.py index 1196291..27b6a55 100644 --- a/jenkinsapi_tests/unittests/test_job_get_all_builds.py +++ b/jenkinsapi_tests/unittests/test_job_get_all_builds.py @@ -4,7 +4,7 @@ import unittest from jenkinsapi import config from jenkinsapi.job import Job from jenkinsapi.jenkinsbase import JenkinsBase -from jenkinsapi.exceptions import NoBuildData +from jenkinsapi.custom_exceptions import NoBuildData class TestJobGetAllBuilds(unittest.TestCase): diff --git a/jenkinsapi_tests/unittests/test_job_multiconf.py b/jenkinsapi_tests/unittests/test_job_multiconf.py index be9253b..335f741 100644 --- a/jenkinsapi_tests/unittests/test_job_multiconf.py +++ b/jenkinsapi_tests/unittests/test_job_multiconf.py @@ -3,7 +3,7 @@ # from jenkinsapi.job import Job # from jenkinsapi.jenkinsbase import JenkinsBase -# from jenkinsapi.exceptions import NoBuildData +# from jenkinsapi.custom_exceptions import NoBuildData # class TestMultiConfigJob(unittest.TestCase): diff --git a/jenkinsapi_tests/unittests/test_requester.py b/jenkinsapi_tests/unittests/test_requester.py index bbd92b0..7f69aba 100644 --- a/jenkinsapi_tests/unittests/test_requester.py +++ b/jenkinsapi_tests/unittests/test_requester.py @@ -4,7 +4,7 @@ import unittest import requests from collections import defaultdict from jenkinsapi.jenkins import Requester -from jenkinsapi.exceptions import JenkinsAPIException +from jenkinsapi.custom_exceptions import JenkinsAPIException class TestQueue(unittest.TestCase): diff --git a/jenkinsapi_utils/jenkins_launcher.py b/jenkinsapi_utils/jenkins_launcher.py index 2b1c243..5477bcf 100644 --- a/jenkinsapi_utils/jenkins_launcher.py +++ b/jenkinsapi_utils/jenkins_launcher.py @@ -11,7 +11,7 @@ import subprocess import pkg_resources from jenkinsapi.jenkins import Jenkins -from jenkinsapi.exceptions import JenkinsAPIException +from jenkinsapi.custom_exceptions import JenkinsAPIException log = logging.getLogger(__name__)