mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-11-08 18:39:33 +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:
@@ -92,7 +92,7 @@ async def test_install_docker_error(
|
||||
):
|
||||
"""Test install fails due to docker error."""
|
||||
coresys.security.force = True
|
||||
with patch.object(HomeAssistantCore, "_start"), patch.object(
|
||||
with patch.object(HomeAssistantCore, "start"), patch.object(
|
||||
DockerHomeAssistant, "cleanup"
|
||||
), patch.object(
|
||||
Updater, "image_homeassistant", new=PropertyMock(return_value="homeassistant")
|
||||
@@ -119,7 +119,7 @@ async def test_install_other_error(
|
||||
"""Test install fails due to other error."""
|
||||
coresys.docker.images.pull.side_effect = [(err := OSError()), MagicMock()]
|
||||
|
||||
with patch.object(HomeAssistantCore, "_start"), patch.object(
|
||||
with patch.object(HomeAssistantCore, "start"), patch.object(
|
||||
DockerHomeAssistant, "cleanup"
|
||||
), patch.object(
|
||||
Updater, "image_homeassistant", new=PropertyMock(return_value="homeassistant")
|
||||
|
||||
Reference in New Issue
Block a user