Skip to content

Commit

Permalink
test: add newlines for better readability
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasschaub committed Jul 3, 2024
1 parent 580469f commit 295b6a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/tests/test_reusable_containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,10 @@ def test_docker_container_with_reuse_reuse_enabled_ryuk_disabled(monkeypatch):
with DockerContainer("hello-world").with_reuse() as container:
id = container._container.id
wait_for_logs(container, "Hello from Docker!")

containers = DockerClient().client.containers.list(all=True)
assert id in [container.id for container in containers]

# Cleanup after keeping container alive (with_reuse)
container._container.remove(force=True)

Expand All @@ -80,6 +82,7 @@ def test_docker_container_with_reuse_reuse_enabled_ryuk_disabled_same_id(monkeyp
id = container._container.id
with DockerContainer("hello-world").with_reuse() as container:
assert id == container._container.id

# Cleanup after keeping container alive (with_reuse)
container._container.remove(force=True)

Expand Down

0 comments on commit 295b6a4

Please sign in to comment.