diff options
| author | Christian Berendt <berendt@b1-systems.de> | 2014-07-17 09:05:16 +0200 |
|---|---|---|
| committer | Christian Berendt <berendt@b1-systems.de> | 2014-07-17 09:05:48 +0200 |
| commit | 6132647fb77b83cc99406b5da9ae3c63666cb447 (patch) | |
| tree | 647369c122ae9307569aff482c63be36ac0da1b0 /taskflow/tests/unit/worker_based | |
| parent | 1a7de75b1e4dc2040245442319a48a71d7c3dbee (diff) | |
| download | taskflow-6132647fb77b83cc99406b5da9ae3c63666cb447.tar.gz | |
Enabled hacking checks H305 and H307
* H305 imports not grouped correctly
* H307 like imports should be grouped together
Change-Id: If1dd9c89f65ede6959865a885777cb08c263eca0
Diffstat (limited to 'taskflow/tests/unit/worker_based')
4 files changed, 5 insertions, 7 deletions
diff --git a/taskflow/tests/unit/worker_based/test_executor.py b/taskflow/tests/unit/worker_based/test_executor.py index 7faee1b..36e6c0b 100644 --- a/taskflow/tests/unit/worker_based/test_executor.py +++ b/taskflow/tests/unit/worker_based/test_executor.py @@ -14,12 +14,12 @@ # License for the specific language governing permissions and limitations # under the License. -import mock import threading import time from concurrent import futures from kombu import exceptions as kombu_exc +import mock from taskflow.engines.worker_based import executor from taskflow.engines.worker_based import protocol as pr diff --git a/taskflow/tests/unit/worker_based/test_protocol.py b/taskflow/tests/unit/worker_based/test_protocol.py index 27d6e00..af7e649 100644 --- a/taskflow/tests/unit/worker_based/test_protocol.py +++ b/taskflow/tests/unit/worker_based/test_protocol.py @@ -14,9 +14,8 @@ # License for the specific language governing permissions and limitations # under the License. -import mock - from concurrent import futures +import mock from taskflow.engines.worker_based import protocol as pr from taskflow import test diff --git a/taskflow/tests/unit/worker_based/test_proxy.py b/taskflow/tests/unit/worker_based/test_proxy.py index 8876c23..2cbdc25 100644 --- a/taskflow/tests/unit/worker_based/test_proxy.py +++ b/taskflow/tests/unit/worker_based/test_proxy.py @@ -14,10 +14,11 @@ # License for the specific language governing permissions and limitations # under the License. -import mock import socket import threading +import mock + from taskflow.engines.worker_based import proxy from taskflow import test diff --git a/taskflow/tests/unit/worker_based/test_server.py b/taskflow/tests/unit/worker_based/test_server.py index a4eab7a..2a5ed9f 100644 --- a/taskflow/tests/unit/worker_based/test_server.py +++ b/taskflow/tests/unit/worker_based/test_server.py @@ -14,12 +14,10 @@ # License for the specific language governing permissions and limitations # under the License. +from kombu import exceptions as exc import mock - import six -from kombu import exceptions as exc - from taskflow.engines.worker_based import endpoint as ep from taskflow.engines.worker_based import protocol as pr from taskflow.engines.worker_based import server |
