1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-24 12:29:08 +00:00

Remove anonymous volumes when removing containers (#5977)

* Remove anonymous volumes when removing containers

* Add tests for docker.run_command()
This commit is contained in:
Felipe Santos
2025-06-30 08:31:41 -03:00
committed by GitHub
parent 779f47e25d
commit b8852872fe
7 changed files with 148 additions and 9 deletions

View File

@@ -843,7 +843,7 @@ async def test_addon_loads_wrong_image(
with patch("pathlib.Path.is_file", return_value=True):
await install_addon_ssh.load()
container.remove.assert_called_once_with(force=True)
container.remove.assert_called_once_with(force=True, v=True)
assert coresys.docker.images.remove.call_args_list[0].kwargs == {
"image": "local/aarch64-addon-ssh:latest",
"force": True,