Skip to content

Commit d189c15

Browse files
committed
sort imports
1 parent 2f9de46 commit d189c15

File tree

3 files changed

+4
-17
lines changed

3 files changed

+4
-17
lines changed

pre_push_verifications.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ black bin/ tests/ hpecp/
99
#flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
1010
flake8 --exclude hpecp/role.py --docstring-convention numpy bin/ hpecp/
1111

12-
flake8 --ignore=D,E501 tests/catalog_test.py
12+
flake8 --ignore=D,E501 tests/catalog_test.py tests/base_test.py
1313

1414
tox -e py35 -- tests/
1515

tests/base_test.py

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,29 +19,17 @@
1919
# OTHER DEALINGS IN THE SOFTWARE.
2020

2121
import abc
22-
import json
2322
import os
2423
import sys
2524
import tempfile
2625
import unittest
2726
from io import StringIO
2827
from textwrap import dedent
29-
from unittest import TestCase
3028

3129
import requests
3230
import six
33-
from mock import patch
34-
35-
from hpecp import (
36-
APIException,
37-
APIItemNotFoundException,
38-
ContainerPlatformClient,
39-
)
40-
from hpecp.k8s_cluster import (
41-
K8sCluster,
42-
K8sClusterHostConfig,
43-
K8sClusterStatus,
44-
)
31+
32+
from hpecp import ContainerPlatformClient
4533

4634
if six.PY2:
4735
from io import BytesIO as StringIO # noqa: F811
@@ -131,7 +119,7 @@ def httpPostHandlers(cls, *args, **kwargs):
131119
def httpGetHandlers(cls, *args, **kwargs):
132120
try:
133121
handler = BaseTestCase._http_get_handlers[args[0]]
134-
except KeyError as e:
122+
except KeyError:
135123
raise Exception(
136124
"Handler not found for GET {}.\nDid you register a handler with BaseTestCase.registerHttpGetHandler?".format(
137125
args[0]

tests/user_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
from unittest import TestCase
2222

23-
import requests
2423
import six
2524
from mock import patch
2625

0 commit comments

Comments
 (0)