FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(core): fix issues with doctests by Tranquility2 · Pull Request #893 · testcontainers/testcontainers-python · GitHub

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (2) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
4 changes: 2 additions & 2 deletions core/testcontainers/compose/compose.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ def _ignore_properties(cls: type[_IPT], dict_: Any) -> _IPT:
@dataclass
class PublishedPortModel:
"""
Class that represents the response we get from compose when inquiring status
via `DockerCompose.get_running_containers()`.
Class that represents the response we get from compose when inquiring status via `DockerCompose.get_running_containers()`.
"""

URL: Optional[str] = None
Expand Down Expand Up @@ -263,6 +262,7 @@ def compose_command_property(self) -> list[str]:
def waiting_for(self, strategies: dict[str, WaitStrategy]) -> "DockerCompose":
"""
Set wait strategies for specific services.

Args:
strategies: Dictionary mapping service names to wait strategies
"""
Expand Down
10 changes: 3 additions & 7 deletions core/testcontainers/core/container.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,11 @@ class DockerContainer:

Args:
image: The name of the image to start.
docker_client_kw: Dictionary with arguments that will be passed to the
docker.DockerClient init.
docker_client_kw: Dictionary with arguments that will be passed to the docker.DockerClient init.
command: Optional execution command for the container.
name: Optional name for the container.
ports: Ports to be exposed by the container. The port number will be
automatically assigned on the host, use
:code:`get_exposed_port(PORT)` method to get the port number on the host.
volumes: Volumes to mount into the container. Each entry should be a tuple with
three values: host path, container path and. mode (default 'ro').
ports: Ports to be exposed by the container. The port number will be automatically assigned on the host, use :code:`get_exposed_port(PORT)` method to get the port number on the host.
volumes: Volumes to mount into the container. Each entry should be a tuple with three values: host path, container path and mode (default 'ro').
network: Optional network to connect the container to.
network_aliases: Optional list of aliases for the container in the network.

Expand Down

Back | FazBrowse Home | New Git URL