Skip to content

Commit 7a19528

Browse files
committed
fixup test microgrid_info
1 parent f594420 commit 7a19528

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_microgrid_info.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class ProtoConversionTestCase:
4040
"""Whether to expect a warning during conversion."""
4141

4242

43-
def test_microgrid_info_construction() -> None:
43+
def test_construction() -> None:
4444
"""Test MicrogridInfo construction with all fields."""
4545
now = datetime.now(timezone.utc)
4646
info = MicrogridInfo(
@@ -75,7 +75,7 @@ def test_microgrid_info_construction() -> None:
7575
assert info.active is True
7676

7777

78-
def test_microgrid_info_without_optionals() -> None:
78+
def test_construction_without_optionals() -> None:
7979
"""Test MicrogridInfo construction with only required fields."""
8080
now = datetime.now(timezone.utc)
8181
info = MicrogridInfo(
@@ -224,7 +224,7 @@ def test_string_representation() -> None:
224224
@patch("frequenz.client.microgrid._microgrid_info_proto.enum_from_proto")
225225
@patch("frequenz.client.microgrid._microgrid_info_proto.conversion.to_datetime")
226226
# pylint: disable-next=too-many-arguments,too-many-positional-arguments,too-many-branches
227-
def test_microgrid_info_from_proto(
227+
def test_from_proto(
228228
mock_to_datetime: Mock,
229229
mock_enum_from_proto: Mock,
230230
mock_location_from_proto: Mock,

0 commit comments

Comments
 (0)