Skip to content

Commit

Permalink
fix doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
Tranquility2 committed Aug 21, 2024
1 parent bd0e1e7 commit 0f36b37
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/testcontainers/core/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def with_bind_ports(self, container: Union[str, int], host: Optional[Union[str,
>>> from testcontainers.core.container import DockerContainer
>>> container = DockerContainer("alpine:latest")
>>> container.with_bind_ports("8080/tcp", 8080)
>>> container.with_bind_ports("8081/tcp", 8081)
"""

Expand All @@ -85,7 +86,7 @@ def with_exposed_ports(self, *ports: tuple[Union[str, int], ...]) -> Self:
>>> from testcontainers.core.container import DockerContainer
>>> container = DockerContainer("alpine:latest")
>>> container.with_exposed_ports(8080/tcp, 8081)
>>> container.with_exposed_ports("8080/tcp", "8081/tcp")
"""

Expand Down

0 comments on commit 0f36b37

Please sign in to comment.