File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 11# Frequenz Python SDK
22
3+ [ <img alt =" GitHub Workflow Status " src =" https://img.shields.io/github/workflow/status/frequenz-floss/frequenz-sdk-python/frequenz-sdk-python " >] ( https://github.com/frequenz-floss/frequenz-sdk-python/actions/workflows/ci.yaml )
4+ [ <img alt =" PyPI " src =" https://img.shields.io/pypi/v/frequenz-sdk " >] ( https://pypi.org/project/frequenz-sdk/ )
5+ [ <img alt =" PyPI " src =" https://img.shields.io/badge/docs-latest-informational " >] ( https://frequenz-floss.github.io/frequenz-sdk-python/ )
6+
37A development kit to interact with the Frequenz development platform.
48
59## Supported Python versions
Original file line number Diff line number Diff line change 88# pylint: disable=missing-function-docstring,use-implicit-booleaness-not-comparison
99# pylint: disable=invalid-name,no-name-in-module,no-member
1010
11+ from unittest .mock import Mock
12+
1113import grpc
1214from frequenz .api .microgrid .microgrid_pb2 import (
1315 Component ,
1820)
1921from frequenz .api .microgrid .microgrid_pb2_grpc import MicrogridStub
2022from google .protobuf .empty_pb2 import Empty
21- from unittest .mock import Mock
2223
2324from . import mock_api
2425
@@ -223,7 +224,7 @@ async def test_MockGrpcServer() -> None:
223224 server1 = mock_api .MockGrpcServer (servicer1 , port = 57809 )
224225 await server1 .start ()
225226
226- client = MicrogridStub (grpc .aio .insecure_channel ("[::]:57809" )) # type: ignore
227+ client = MicrogridStub (grpc .aio .insecure_channel ("[::]:57809" ))
227228
228229 components1 = await client .ListComponents (Empty ()) # type: ignore
229230 assert list (components1 .components ) == [
You can’t perform that action at this time.
0 commit comments