mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-10-28 21:19:47 +00:00
Improved error handling for docker image pulls (#6095)
* Improved error handling for docker image pulls * Fix mocking in tests due to api use change
This commit is contained in:
@@ -372,9 +372,8 @@ async def test_load_with_incorrect_image(
|
||||
"image": f"{old_image}:2024.4.0",
|
||||
"force": True,
|
||||
}
|
||||
coresys.docker.images.pull.assert_called_once_with(
|
||||
f"{correct_image}:2024.4.0",
|
||||
platform="linux/amd64",
|
||||
coresys.docker.pull_image.assert_called_once_with(
|
||||
correct_image, "2024.4.0", platform="linux/amd64"
|
||||
)
|
||||
assert plugin.image == correct_image
|
||||
|
||||
|
||||
Reference in New Issue
Block a user