Skip to content

Commit 228c6c4

Browse files
committed
Import Bounds from the frequenz-api-common package
Signed-off-by: Sahas Subramanian <[email protected]>
1 parent f1203d4 commit 228c6c4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/microgrid/test_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
import grpc
1111
import pytest
12-
from frequenz.api.microgrid import common_pb2 as common_pb
1312
from frequenz.api.common import components_pb2 as components_pb
13+
from frequenz.api.common import metrics_pb2 as metrics_pb
1414
from frequenz.api.microgrid import microgrid_pb2 as microgrid_pb
1515
from google.protobuf.empty_pb2 import Empty # pylint: disable=no-name-in-module
1616

@@ -546,7 +546,7 @@ async def test_set_bounds(self) -> None:
546546
microgrid_pb.SetBoundsParam(
547547
component_id=comp_id,
548548
target_metric=target_metric.TARGET_METRIC_POWER_ACTIVE,
549-
bounds=common_pb.Bounds(lower=-10, upper=2),
549+
bounds=metrics_pb.Bounds(lower=-10, upper=2),
550550
)
551551
for comp_id in range(num_calls)
552552
]

tests/power/test_distribution_algorithm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from datetime import datetime, timezone
99
from typing import Dict, List, Optional
1010

11-
from frequenz.api.microgrid.common_pb2 import Bounds
11+
from frequenz.api.common.metrics_pb2 import Bounds
1212
from pytest import approx, raises
1313

1414
from frequenz.sdk.microgrid.component import BatteryData, InverterData

0 commit comments

Comments
 (0)