File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 99
1010import grpc
1111import pytest
12- from frequenz .api .microgrid import common_pb2 as common_pb
1312from frequenz .api .common import components_pb2 as components_pb
13+ from frequenz .api .common import metrics_pb2 as metrics_pb
1414from frequenz .api .microgrid import microgrid_pb2 as microgrid_pb
1515from 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 ]
Original file line number Diff line number Diff line change 88from datetime import datetime , timezone
99from typing import Dict , List , Optional
1010
11- from frequenz .api .microgrid . common_pb2 import Bounds
11+ from frequenz .api .common . metrics_pb2 import Bounds
1212from pytest import approx , raises
1313
1414from frequenz .sdk .microgrid .component import BatteryData , InverterData
You can’t perform that action at this time.
0 commit comments