File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 18
18
from frequenz .client .dispatch .recurrence import Frequency , RecurrenceRule
19
19
from frequenz .client .dispatch .test .client import FakeClient
20
20
from frequenz .client .dispatch .test .generator import DispatchGenerator
21
+ from frequenz .client .microgrid import ComponentId
21
22
from frequenz .sdk .actor import Actor
22
23
from pytest import fixture
23
24
@@ -152,6 +153,7 @@ async def test_simple_start_stop(
152
153
active = True ,
153
154
dry_run = False ,
154
155
duration = duration ,
156
+ target = [1 , 10 , 15 ],
155
157
start_time = now ,
156
158
payload = {"test" : True },
157
159
type = "UNIT_TEST" ,
@@ -169,7 +171,7 @@ async def test_simple_start_stop(
169
171
170
172
event = test_env .actor (1 ).initial_dispatch
171
173
assert event .options == {"test" : True }
172
- assert event .components == dispatch . target
174
+ assert event .components == [ ComponentId ( 1 ), ComponentId ( 10 ), ComponentId ( 15 )]
173
175
assert event .dry_run is False
174
176
175
177
assert test_env .actor (1 ).is_running is True
You can’t perform that action at this time.
0 commit comments