mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-14 04:36:31 +00:00
Replace loop test fixture with event_loop (#3847)
This addresses a deprecation warning when calling tests with Python 3.10: ``` ../python3.10/site-packages/pytest_aiohttp/plugin.py:33: DeprecationWarning: 'loop' fixture is deprecated and scheduled for removal, please use 'event_loop' instead ```
This commit is contained in:
parent
10dcf5c12f
commit
01e24a3e74
@ -225,7 +225,9 @@ async def resolved(dbus: DBus) -> Resolved:
|
|||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
async def coresys(loop, docker, network_manager, aiohttp_client, run_dir) -> CoreSys:
|
async def coresys(
|
||||||
|
event_loop, docker, network_manager, aiohttp_client, run_dir
|
||||||
|
) -> CoreSys:
|
||||||
"""Create a CoreSys Mock."""
|
"""Create a CoreSys Mock."""
|
||||||
with patch("supervisor.bootstrap.initialize_system"), patch(
|
with patch("supervisor.bootstrap.initialize_system"), patch(
|
||||||
"supervisor.bootstrap.setup_diagnostics"
|
"supervisor.bootstrap.setup_diagnostics"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user