Skip to content

Commit dfec693

Browse files
committed
Add tests for managing actor with component IDs
Signed-off-by: Mathias L. Baumann <[email protected]>
1 parent a46c0c7 commit dfec693

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_managing_actor.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from frequenz.client.dispatch.recurrence import Frequency, RecurrenceRule
1919
from frequenz.client.dispatch.test.client import FakeClient
2020
from frequenz.client.dispatch.test.generator import DispatchGenerator
21+
from frequenz.client.microgrid import ComponentId
2122
from frequenz.sdk.actor import Actor
2223
from pytest import fixture
2324

@@ -152,6 +153,7 @@ async def test_simple_start_stop(
152153
active=True,
153154
dry_run=False,
154155
duration=duration,
156+
target=[1, 10, 15],
155157
start_time=now,
156158
payload={"test": True},
157159
type="UNIT_TEST",
@@ -169,7 +171,7 @@ async def test_simple_start_stop(
169171

170172
event = test_env.actor(1).initial_dispatch
171173
assert event.options == {"test": True}
172-
assert event.components == dispatch.target
174+
assert event.components == [ComponentId(1), ComponentId(10), ComponentId(15)]
173175
assert event.dry_run is False
174176

175177
assert test_env.actor(1).is_running is True

0 commit comments

Comments
 (0)