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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions core/testcontainers/compose/compose.py
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
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