Skip to content

Commit af91b8d

Browse files
Restyled by isort
1 parent d866eea commit af91b8d

File tree

3 files changed

+24
-8
lines changed

3 files changed

+24
-8
lines changed

minos/api_gateway/discovery/database/client.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,19 @@ class OrdersMinosApiRouter(MinosApiRouter):
1414

1515
import json
1616
import logging
17-
from typing import Any, Optional
17+
from typing import (
18+
Any,
19+
Optional,
20+
)
1821

1922
import aioredis
2023

21-
from minos.api_gateway.common import MinosConfig
22-
from minos.api_gateway.discovery.domain.microservice import MICROSERVICE_KEY_PREFIX
24+
from minos.api_gateway.common import (
25+
MinosConfig,
26+
)
27+
from minos.api_gateway.discovery.domain.microservice import (
28+
MICROSERVICE_KEY_PREFIX,
29+
)
2330

2431
log = logging.getLogger(__name__)
2532

tests/test_api_gateway/test_discovery/dataset.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import random
22
import socket
33
import struct
4-
from uuid import uuid4
4+
from uuid import (
5+
uuid4,
6+
)
57

68

79
def generate_random_microservice_names(quantity: int):

tests/test_api_gateway/test_discovery/test_views/test_microservice.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,21 @@
44
AioHTTPTestCase,
55
unittest_run_loop,
66
)
7-
from minos.api_gateway.common import MinosConfig
8-
from minos.api_gateway.discovery import DiscoveryService
7+
8+
from minos.api_gateway.common import (
9+
MinosConfig,
10+
)
11+
from minos.api_gateway.discovery import (
12+
DiscoveryService,
13+
)
914
from tests.test_api_gateway.test_discovery.dataset import (
10-
generate_record,
1115
generate_random_microservice_names,
16+
generate_record,
1217
generate_record_old,
1318
)
14-
from tests.utils import BASE_PATH
19+
from tests.utils import (
20+
BASE_PATH,
21+
)
1522

1623

1724
class TestMicroserviceEndpoints(AioHTTPTestCase):

0 commit comments

Comments
 (0)