1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2026-02-15 07:27:13 +00:00

Bump aiodocker from 0.24.0 to 0.25.0 (#6448)

* Bump aiodocker from 0.24.0 to 0.25.0

Bumps [aiodocker](https://github.com/aio-libs/aiodocker) from 0.24.0 to 0.25.0.
- [Release notes](https://github.com/aio-libs/aiodocker/releases)
- [Changelog](https://github.com/aio-libs/aiodocker/blob/main/CHANGES.rst)
- [Commits](https://github.com/aio-libs/aiodocker/compare/v0.24.0...v0.25.0)

---
updated-dependencies:
- dependency-name: aiodocker
  dependency-version: 0.25.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update to new timeout configuration

* Fix pytest failure

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mike Degatano <michael.degatano@gmail.com>
Co-authored-by: Stefan Agner <stefan@agner.ch>
This commit is contained in:
dependabot[bot]
2026-01-30 09:39:06 +01:00
committed by GitHub
parent 8fa55bac9e
commit 2a4890e2b0
5 changed files with 14 additions and 14 deletions

View File

@@ -131,7 +131,7 @@ async def test_run_command_inspect_error_propagates(docker: DockerAPI):
async def test_run_command_docker_exception(docker: DockerAPI):
"""Test command execution when Docker raises an exception."""
# Mock docker containers.run to raise aiodocker.DockerError
docker.containers.create.side_effect = aiodocker.DockerError(
docker.containers.create.side_effect = err = aiodocker.DockerError(
HTTPStatus.INTERNAL_SERVER_ERROR, {"message": "Docker error"}
)
@@ -139,7 +139,7 @@ async def test_run_command_docker_exception(docker: DockerAPI):
with pytest.raises(
DockerError,
match=re.escape(
"Can't execute command: Can't create container from alpine:latest: DockerError(500, 'Docker error')"
f"Can't execute command: Can't create container from alpine:latest: {str(err)}"
),
):
await docker.run_command(image="alpine", command="test")
@@ -335,7 +335,7 @@ async def test_stop_container_with_cidfile_cleanup(
await docker.stop_container(timeout=10, remove_container=True, name=container_name)
# Verify container operations
container.stop.assert_called_once_with(timeout=10)
container.stop.assert_called_once_with(t=10)
container.delete.assert_called_once_with(force=True, v=True)
assert not cidfile_path.exists()
@@ -356,7 +356,7 @@ async def test_stop_container_without_removal_no_cidfile_cleanup(
await docker.stop_container(container_name, timeout=10, remove_container=False)
# Verify container operations
container.stop.assert_called_once_with(timeout=10)
container.stop.assert_called_once_with(t=10)
container.delete.assert_not_called()
# Verify cidfile cleanup was NOT called
@@ -389,7 +389,7 @@ async def test_cidfile_cleanup_handles_oserror(
await docker.stop_container(container_name, timeout=10, remove_container=True)
# Verify container operations completed
container.stop.assert_called_once_with(timeout=10)
container.stop.assert_called_once_with(t=10)
container.delete.assert_called_once_with(force=True, v=True)
# Verify cidfile cleanup was attempted