From 509df7db0336e016db000ac3574687456bfe0a29 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Thu, 29 Feb 2024 11:03:49 +0100 Subject: [PATCH] Fix/improve `test_timeout.py` docstrings Signed-off-by: Leandro Lucarella --- tests/test_timeout.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/test_timeout.py b/tests/test_timeout.py index 93a0ce3..d17ab2b 100644 --- a/tests/test_timeout.py +++ b/tests/test_timeout.py @@ -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 @@ -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( @@ -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( @@ -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(