From 195f6972e9fe51cdf09a8c6bda5ce6a7da299770 Mon Sep 17 00:00:00 2001 From: Cao Xuan Hoang Date: Tue, 11 Oct 2016 13:59:59 +0700 Subject: [PATCH] Remove logging import unused This patch removes logging import unused in mistral/auth/__init__.py mistral/tests/unit/workbook/v2/test_tasks.py mistral_tempest_tests/tests/api/v2/*.py Change-Id: I66233ba2f458801fb1543e5b4001a4300e74cec2 --- mistral/auth/__init__.py | 3 --- mistral/tests/unit/workbook/v2/test_tasks.py | 5 ----- mistral_tempest_tests/tests/api/v2/test_actions.py | 4 ---- mistral_tempest_tests/tests/api/v2/test_cron_triggers.py | 4 ---- mistral_tempest_tests/tests/api/v2/test_executions.py | 4 ---- mistral_tempest_tests/tests/api/v2/test_tasks.py | 4 ---- mistral_tempest_tests/tests/api/v2/test_workbooks.py | 4 ---- mistral_tempest_tests/tests/api/v2/test_workflows.py | 4 ---- 8 files changed, 32 deletions(-) diff --git a/mistral/auth/__init__.py b/mistral/auth/__init__.py index 9c301e26..a7e97fd1 100644 --- a/mistral/auth/__init__.py +++ b/mistral/auth/__init__.py @@ -15,15 +15,12 @@ import abc from oslo_config import cfg -from oslo_log import log as logging import six from stevedore import driver from mistral import exceptions as exc -LOG = logging.getLogger(__name__) - _IMPL_AUTH_HANDLER = None diff --git a/mistral/tests/unit/workbook/v2/test_tasks.py b/mistral/tests/unit/workbook/v2/test_tasks.py index d97aa4e5..e04d89ed 100644 --- a/mistral/tests/unit/workbook/v2/test_tasks.py +++ b/mistral/tests/unit/workbook/v2/test_tasks.py @@ -14,16 +14,11 @@ # See the License for the specific language governing permissions and # limitations under the License. -from oslo_log import log as logging - from mistral.tests.unit.workbook.v2 import base as v2_base from mistral import utils from mistral.workbook.v2 import workflows -LOG = logging.getLogger(__name__) - - class TaskSpecValidation(v2_base.WorkflowSpecValidationTestCase): def test_type_injection(self): tests = [ diff --git a/mistral_tempest_tests/tests/api/v2/test_actions.py b/mistral_tempest_tests/tests/api/v2/test_actions.py index a2ef48a7..828fabcc 100644 --- a/mistral_tempest_tests/tests/api/v2/test_actions.py +++ b/mistral_tempest_tests/tests/api/v2/test_actions.py @@ -13,7 +13,6 @@ # under the License. import datetime -from oslo_log import log as logging from tempest.lib import exceptions from tempest import test @@ -21,9 +20,6 @@ from mistral import utils from mistral_tempest_tests.tests import base -LOG = logging.getLogger(__name__) - - class ActionTestsV2(base.TestCase): _service = 'workflowv2' diff --git a/mistral_tempest_tests/tests/api/v2/test_cron_triggers.py b/mistral_tempest_tests/tests/api/v2/test_cron_triggers.py index 4dcfb290..3a0b0c5a 100644 --- a/mistral_tempest_tests/tests/api/v2/test_cron_triggers.py +++ b/mistral_tempest_tests/tests/api/v2/test_cron_triggers.py @@ -13,16 +13,12 @@ # under the License. from oslo_concurrency.fixture import lockutils -from oslo_log import log as logging from tempest.lib import exceptions from tempest import test from mistral_tempest_tests.tests import base -LOG = logging.getLogger(__name__) - - class CronTriggerTestsV2(base.TestCase): _service = 'workflowv2' diff --git a/mistral_tempest_tests/tests/api/v2/test_executions.py b/mistral_tempest_tests/tests/api/v2/test_executions.py index aa8b8d1c..3410c4b6 100644 --- a/mistral_tempest_tests/tests/api/v2/test_executions.py +++ b/mistral_tempest_tests/tests/api/v2/test_executions.py @@ -13,7 +13,6 @@ # under the License. from oslo_concurrency.fixture import lockutils -from oslo_log import log as logging from tempest.lib import exceptions from tempest import test @@ -21,9 +20,6 @@ from mistral import utils from mistral_tempest_tests.tests import base -LOG = logging.getLogger(__name__) - - class ExecutionTestsV2(base.TestCase): _service = 'workflowv2' diff --git a/mistral_tempest_tests/tests/api/v2/test_tasks.py b/mistral_tempest_tests/tests/api/v2/test_tasks.py index 89361296..332f37eb 100644 --- a/mistral_tempest_tests/tests/api/v2/test_tasks.py +++ b/mistral_tempest_tests/tests/api/v2/test_tasks.py @@ -13,15 +13,11 @@ # under the License. from oslo_concurrency.fixture import lockutils -from oslo_log import log as logging from tempest import test from mistral_tempest_tests.tests import base -LOG = logging.getLogger(__name__) - - class TasksTestsV2(base.TestCase): _service = 'workflowv2' diff --git a/mistral_tempest_tests/tests/api/v2/test_workbooks.py b/mistral_tempest_tests/tests/api/v2/test_workbooks.py index a9469df5..787b0afd 100644 --- a/mistral_tempest_tests/tests/api/v2/test_workbooks.py +++ b/mistral_tempest_tests/tests/api/v2/test_workbooks.py @@ -13,16 +13,12 @@ # under the License. from oslo_concurrency.fixture import lockutils -from oslo_log import log as logging from tempest.lib import exceptions from tempest import test from mistral_tempest_tests.tests import base -LOG = logging.getLogger(__name__) - - class WorkbookTestsV2(base.TestCase): _service = 'workflowv2' diff --git a/mistral_tempest_tests/tests/api/v2/test_workflows.py b/mistral_tempest_tests/tests/api/v2/test_workflows.py index 3d3a2efe..78386d42 100644 --- a/mistral_tempest_tests/tests/api/v2/test_workflows.py +++ b/mistral_tempest_tests/tests/api/v2/test_workflows.py @@ -13,7 +13,6 @@ # under the License. from oslo_concurrency.fixture import lockutils -from oslo_log import log as logging from tempest.lib import exceptions from tempest import test @@ -21,9 +20,6 @@ from mistral import utils from mistral_tempest_tests.tests import base -LOG = logging.getLogger(__name__) - - class WorkflowTestsV2(base.TestCase): _service = 'workflowv2'