mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-11-08 10:29:30 +00:00
Add job group execution limit option (#4457)
* Add job group execution limit option * Fix pylint issues * Assign variable before usage * Cleanup jobs when done * Remove isinstance check for performance * Explicitly raise from None * Add some more documentation info
This commit is contained in:
@@ -6,8 +6,16 @@ import pytest
|
||||
|
||||
from supervisor.const import LogLevel
|
||||
from supervisor.coresys import CoreSys
|
||||
from supervisor.docker.audio import DockerAudio
|
||||
|
||||
from tests.plugins.test_dns import fixture_docker_interface # noqa: F401
|
||||
|
||||
@pytest.fixture(name="docker_interface")
|
||||
async def fixture_docker_interface() -> tuple[AsyncMock, AsyncMock]:
|
||||
"""Mock docker interface methods."""
|
||||
with patch.object(DockerAudio, "run") as run, patch.object(
|
||||
DockerAudio, "restart"
|
||||
) as restart:
|
||||
yield (run, restart)
|
||||
|
||||
|
||||
@pytest.fixture(name="write_json")
|
||||
|
||||
Reference in New Issue
Block a user