Skip to content

Commit f28b07d

Browse files
committed
fix doctest
1 parent 0f36b37 commit f28b07d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

core/testcontainers/core/container.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ def with_bind_ports(self, container: Union[str, int], host: Optional[Union[str,
6767
:doctest:
6868
6969
>>> from testcontainers.core.container import DockerContainer
70-
>>> container = DockerContainer("alpine:latest")
71-
>>> container.with_bind_ports("8080/tcp", 8080)
72-
>>> container.with_bind_ports("8081/tcp", 8081)
70+
>>> container = DockerContainer("nginx")
71+
>>> container = container.with_bind_ports("8080/tcp", 8080)
72+
>>> container = container.with_bind_ports("8081/tcp", 8081)
7373
7474
"""
7575

@@ -85,8 +85,8 @@ def with_exposed_ports(self, *ports: tuple[Union[str, int], ...]) -> Self:
8585
:doctest:
8686
8787
>>> from testcontainers.core.container import DockerContainer
88-
>>> container = DockerContainer("alpine:latest")
89-
>>> container.with_exposed_ports("8080/tcp", "8081/tcp")
88+
>>> container = DockerContainer("nginx")
89+
>>> container = container.with_exposed_ports("8080/tcp", "8081/tcp")
9090
9191
"""
9292

0 commit comments

Comments
 (0)