Skip to content

Commit 694897e

Browse files
committed
Rename old energy test functions to power
Signed-off-by: Sahas Subramanian <[email protected]>
1 parent 779b3a5 commit 694897e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_types.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -315,17 +315,17 @@ def test_price_from_pb() -> None:
315315
)
316316

317317

318-
def test_energy_to_pb() -> None:
319-
"""Test the client energy type conversions to protobuf."""
318+
def test_power_to_pb() -> None:
319+
"""Test the client power type conversions to protobuf."""
320320
assert_conversion_to_pb(
321321
original=Power(mw=Decimal("5")),
322322
expected_pb=power_pb2.Power(mw=decimal_pb2.Decimal(value="5")),
323323
assert_func=assert_equal,
324324
)
325325

326326

327-
def test_energy_from_pb() -> None:
328-
"""Test the client energy type conversions from protobuf."""
327+
def test_power_from_pb() -> None:
328+
"""Test the client power type conversions from protobuf."""
329329
assert_conversion_from_pb(
330330
original_pb=power_pb2.Power(mw=decimal_pb2.Decimal(value="5")),
331331
expected=Power(mw=Decimal("5")),

0 commit comments

Comments
 (0)