Skip to content

Commit

Permalink
removed if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
ckunki committed Mar 19, 2024
1 parent cc64266 commit ee1c41a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions test/integration/test_create_dss_docker_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,16 +127,13 @@ def test_docker_socket_access(dss_docker_container):
def dss_container_context(request, dss_docker_image):
@contextmanager
def context(docker_socket_host: Path):
volumes = None
if docker_socket_host is not None:
volumes = { docker_socket_host: {
'bind': DOCKER_SOCKET_CONTAINER,
'mode': 'rw', }, }
yield from container(
request,
base_name="C",
image=dss_docker_image.image_name,
volumes=volumes,
volumes={ docker_socket_host: {
'bind': DOCKER_SOCKET_CONTAINER,
'mode': 'rw', }, },
)
return context

Expand Down

0 comments on commit ee1c41a

Please sign in to comment.