File tree Expand file tree Collapse file tree 3 files changed +24
-8
lines changed
minos/api_gateway/discovery/database
tests/test_api_gateway/test_discovery Expand file tree Collapse file tree 3 files changed +24
-8
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,19 @@ class OrdersMinosApiRouter(MinosApiRouter):
1414
1515import json
1616import logging
17- from typing import Any , Optional
17+ from typing import (
18+ Any ,
19+ Optional ,
20+ )
1821
1922import 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
2431log = logging .getLogger (__name__ )
2532
Original file line number Diff line number Diff line change 11import random
22import socket
33import struct
4- from uuid import uuid4
4+ from uuid import (
5+ uuid4 ,
6+ )
57
68
79def generate_random_microservice_names (quantity : int ):
Original file line number Diff line number Diff line change 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+ )
914from 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
1724class TestMicroserviceEndpoints (AioHTTPTestCase ):
You can’t perform that action at this time.
0 commit comments