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 1818from frequenz .client .dispatch .recurrence import Frequency , RecurrenceRule
1919from frequenz .client .dispatch .test .client import FakeClient
2020from frequenz .client .dispatch .test .generator import DispatchGenerator
21+ from frequenz .client .microgrid import ComponentId
2122from frequenz .sdk .actor import Actor
2223from 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
You can’t perform that action at this time.
0 commit comments