Skip to content

Commit

Permalink
Fix/improve test_timeout.py docstrings
Browse files Browse the repository at this point in the history
Signed-off-by: Leandro Lucarella <[email protected]>
  • Loading branch information
llucax committed Feb 29, 2024
1 parent 1145f29 commit 509df7d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/test_timeout.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# License: MIT
# Copyright © 2022 Frequenz Energy-as-a-Service GmbH

"""Benchmark for microgrid data."""
"""Tests for the timeout handling in the client."""

import time
from typing import Any, Iterator
from unittest.mock import patch
Expand Down Expand Up @@ -46,7 +47,7 @@ def fake_grpc_call_timeout() -> Iterator[float]:


async def test_components_timeout(mocker: MockerFixture) -> None:
"""Test if the components() method properly raises AioRpcError."""
"""Test if the components() method properly raises a timeeout AioRpcError."""
servicer = MockMicrogridServicer()

def mock_list_components(
Expand All @@ -70,7 +71,7 @@ def mock_list_components(


async def test_connections_timeout(mocker: MockerFixture) -> None:
"""Test if the connections() method properly raises AioRpcError."""
"""Test if the connections() method properly raises a timeout AioRpcError."""
servicer = MockMicrogridServicer()

def mock_list_connections(
Expand All @@ -94,7 +95,7 @@ def mock_list_connections(


async def test_set_power_timeout(mocker: MockerFixture) -> None:
"""Test if the set_power() method properly raises AioRpcError."""
"""Test if the set_power() method properly raises a timeout AioRpcError."""
servicer = MockMicrogridServicer()

def mock_set_power(
Expand Down

0 comments on commit 509df7d

Please sign in to comment.