@@ -36,9 +36,7 @@ async def test_formula_composition( # pylint: disable=too-many-locals
3636 stack .push_async_callback (logical_meter .stop )
3737
3838 battery_pool = microgrid .battery_pool ()
39- stack .push_async_callback (
40- battery_pool ._battery_pool .stop # pylint: disable=protected-access
41- )
39+ stack .push_async_callback (battery_pool .stop )
4240
4341 pv_pool = microgrid .pv_pool ()
4442 stack .push_async_callback (pv_pool .stop )
@@ -116,9 +114,7 @@ async def test_formula_composition_missing_pv(self, mocker: MockerFixture) -> No
116114 count = 0
117115 async with mockgrid , AsyncExitStack () as stack :
118116 battery_pool = microgrid .battery_pool ()
119- stack .push_async_callback (
120- battery_pool ._battery_pool .stop # pylint: disable=protected-access
121- )
117+ stack .push_async_callback (battery_pool .stop )
122118
123119 pv_pool = microgrid .pv_pool ()
124120 stack .push_async_callback (pv_pool .stop )
@@ -160,9 +156,7 @@ async def test_formula_composition_missing_bat(self, mocker: MockerFixture) -> N
160156 count = 0
161157 async with mockgrid , AsyncExitStack () as stack :
162158 battery_pool = microgrid .battery_pool ()
163- stack .push_async_callback (
164- battery_pool ._battery_pool .stop # pylint: disable=protected-access
165- )
159+ stack .push_async_callback (battery_pool .stop )
166160
167161 pv_pool = microgrid .pv_pool ()
168162 stack .push_async_callback (pv_pool .stop )
0 commit comments