Skip to content

Commit c8d2412

Browse files
Merge pull request #2132 from VWS-Python/dependabot/pip/types-docker-7.1.0.20240625
Bump types-docker from 7.1.0.20240624 to 7.1.0.20240625
2 parents 527a697 + df4e714 commit c8d2412

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ optional-dependencies.dev = [
8585
"sybil==6.1.1",
8686
"tenacity==8.4.2",
8787
"torch==2.3.1",
88-
"types-docker==7.1.0.20240624",
88+
"types-docker==7.1.0.20240625",
8989
"types-pillow==10.2.0.20240520",
9090
"types-pyyaml==6.0.12.20240311",
9191
"types-requests==2.32.0.20240622",

tests/mock_vws/test_docker.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,18 +68,13 @@ def fixture_custom_bridge_network() -> Iterator[Network]:
6868
A custom bridge network.
6969
"""
7070
client = docker.from_env()
71+
name = "test-vws-bridge-" + uuid.uuid4().hex
7172
try:
72-
network = client.networks.create( # pyright: ignore[reportUnknownMemberType]
73-
name="test-vws-bridge-" + uuid.uuid4().hex,
74-
driver="bridge",
75-
)
73+
network = client.networks.create(name=name, driver="bridge")
7674
except NotFound:
7775
# On Windows the "bridge" network driver is not available and we use
7876
# the "nat" driver instead.
79-
network = client.networks.create( # pyright: ignore[reportUnknownMemberType]
80-
name="test-vws-bridge-" + uuid.uuid4().hex,
81-
driver="nat",
82-
)
77+
network = client.networks.create(name=name, driver="nat")
8378

8479
try:
8580
yield network

0 commit comments

Comments
 (0)