File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change 3333)
3434from frequenz .client .microgrid ._connection import Connection
3535
36- # @contextlib.asynccontextmanager
37- # async def _gprc_server(
38- # servicer: mock_api.MockMicrogridServicer | None = None,
39- # ) -> AsyncIterator[tuple[mock_api.MockMicrogridServicer, ApiClient]]:
40- # global _CURRENT_PORT # pylint: disable=global-statement
41- # port = _CURRENT_PORT
42- # _CURRENT_PORT += 1
43- # if servicer is None:
44- # servicer = mock_api.MockMicrogridServicer()
45- # server = mock_api.MockGrpcServer(servicer, port=port)
46- # client = ApiClient(
47- # grpc.aio.insecure_channel(f"[::]:{port}"),
48- # f"[::]:{port}",
49- # retry_strategy=LinearBackoff(interval=0.0, jitter=0.05),
50- # )
51- # await server.start()
52- # try:
53- # yield servicer, client
54- # finally:
55- # assert await server.graceful_shutdown()
56-
5736
5837class _TestClient (ApiClient ):
5938 def __init__ (self , * , retry_strategy : retry .Strategy | None = None ) -> None :
You can’t perform that action at this time.
0 commit comments