Skip to content

Commit 08dbdef

Browse files
committed
Remove unused MockMicrogrid.start method
Signed-off-by: Sahas Subramanian <[email protected]>
1 parent 71016b6 commit 08dbdef

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

tests/timeseries/mock_microgrid.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -148,24 +148,6 @@ def start_mock_client(
148148
]
149149
return self._microgrid
150150

151-
async def start(self, mocker: MockerFixture) -> None:
152-
"""Start the MockServer, and the data source and resampling actors."""
153-
self.start_mock_client(lambda mock_client: mock_client.initialize(mocker))
154-
await asyncio.sleep(self._sample_rate_s / 2)
155-
156-
# pylint: disable=protected-access
157-
_data_pipeline._DATA_PIPELINE = _data_pipeline._DataPipeline(
158-
ResamplerConfig(
159-
resampling_period=timedelta(seconds=self._sample_rate_s),
160-
# Align to the time the resampler is created to avoid flakiness
161-
# in the tests, it seems test using the mock microgrid assume
162-
# that the resampling window is aligned to the start of the
163-
# test.
164-
align_to=None,
165-
)
166-
)
167-
# pylint: enable=protected-access
168-
169151
async def _comp_data_send_task(
170152
self, comp_id: int, make_comp_data: Callable[[int, datetime], ComponentData]
171153
) -> None:

0 commit comments

Comments
 (0)