Skip to content

Commit 919a0f4

Browse files
committed
Cleanup after PV and EV charger tests finish
Signed-off-by: Sahas Subramanian <[email protected]>
1 parent 0f5dc6a commit 919a0f4

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

tests/timeseries/_ev_charger_pool/test_ev_charger_pool_control_methods.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,14 @@ async def mocks(mocker: MockerFixture) -> typing.AsyncIterator[_Mocks]:
6363
dp._ev_power_wrapper.status_channel.new_sender(),
6464
)
6565

66+
await asyncio.gather(
67+
*[
68+
dp._stop(),
69+
streamer.stop(),
70+
mockgrid.cleanup(),
71+
]
72+
)
73+
6674

6775
class TestEVChargerPoolControl:
6876
"""Test the EV charger pool control methods."""

tests/timeseries/_pv_pool/test_pv_pool_control_methods.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,14 @@ async def mocks(mocker: MockerFixture) -> typing.AsyncIterator[_Mocks]:
5656
dp._pv_power_wrapper.status_channel.new_sender(),
5757
)
5858

59+
await asyncio.gather(
60+
*[
61+
dp._stop(),
62+
streamer.stop(),
63+
mockgrid.cleanup(),
64+
]
65+
)
66+
5967

6068
class TestPVPoolControl:
6169
"""Test control methods for the PVPool."""

0 commit comments

Comments
 (0)