diff --git a/core/testcontainers/compose/compose.py b/core/testcontainers/compose/compose.py index f2a4debc..61961ce0 100644 --- a/core/testcontainers/compose/compose.py +++ b/core/testcontainers/compose/compose.py @@ -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 @@ -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 """ diff --git a/core/testcontainers/core/container.py b/core/testcontainers/core/container.py index d1854402..4bb4eec4 100644 --- a/core/testcontainers/core/container.py +++ b/core/testcontainers/core/container.py @@ -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.