Skip to content

Commit 5542c3d

Browse files
committed
Add PyPI and Docs badges to README
Signed-off-by: Leandro Lucarella <[email protected]>
1 parent 98de669 commit 5542c3d

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
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+
37
A development kit to interact with the Frequenz development platform.
48

59
## Supported Python versions

tests/test_microgrid/test_mock_api.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
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+
1113
import grpc
1214
from frequenz.api.microgrid.microgrid_pb2 import (
1315
Component,
@@ -18,7 +20,6 @@
1820
)
1921
from frequenz.api.microgrid.microgrid_pb2_grpc import MicrogridStub
2022
from google.protobuf.empty_pb2 import Empty
21-
from unittest.mock import Mock
2223

2324
from . 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) == [

0 commit comments

Comments
 (0)