Skip to content

Commit 0f36b37

Browse files
committed
fix doctest
1 parent bd0e1e7 commit 0f36b37

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/testcontainers/core/container.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ def with_bind_ports(self, container: Union[str, int], host: Optional[Union[str,
6969
>>> from testcontainers.core.container import DockerContainer
7070
>>> container = DockerContainer("alpine:latest")
7171
>>> container.with_bind_ports("8080/tcp", 8080)
72+
>>> container.with_bind_ports("8081/tcp", 8081)
7273
7374
"""
7475

@@ -85,7 +86,7 @@ def with_exposed_ports(self, *ports: tuple[Union[str, int], ...]) -> Self:
8586
8687
>>> from testcontainers.core.container import DockerContainer
8788
>>> container = DockerContainer("alpine:latest")
88-
>>> container.with_exposed_ports(8080/tcp, 8081)
89+
>>> container.with_exposed_ports("8080/tcp", "8081/tcp")
8990
9091
"""
9192

0 commit comments

Comments
 (0)