testcontainers-python
testcontainers-python copied to clipboard
Testcontainers is a Python library that providing a friendly API to run Docker container. It is designed to create runtime environment to use during your automatic tests.
Closes #926 by adding PEP-561 marker file `py.typed`
The [code for `azurite`](https://github.com/testcontainers/testcontainers-python/blob/main/modules/azurite/testcontainers/azurite/__init__.py) appears to be properly type-annotated, but the package does not include PEP-561 marker (`py.typed`). This prevents `mypy` from recognising `testcontainers` imports as being typed. Expected: `py.typed`...
## Problem `minio==7.2.19` was released on [November 24](https://pypi.org/project/minio/#history). It breaks the Minio container wrapper. ```python TypeError: Minio.__init__() takes 1 positional argument but 2 positional arguments (and 3 keyword-only arguments) were...
Noticed a mismatch in a function docstring while using the library. Fixed return type of `get_service_port` from `str` to `int`
fixes https://github.com/testcontainers/testcontainers-python/issues/934
**What is the new container you'd like to have?** Iād like to add Valkey, the open-source fork of Redis, as a dedicated Testcontainers module. - Docker container: valkey/valkey:latest - Valkey...
Linked issue: https://github.com/testcontainers/testcontainers-python/issues/865 This adds a Mongo DB Atlas local container. This works similarly to the Java container: https://java.testcontainers.org/modules/databases/mongodb/#mongodbatlaslocalcontainer Like the java one, I added this into the same module...
Summary This PR adds the ability to retrieve detailed container information from docker inspect in a structured format for ComposeContainer objects, with lazy loading and caching for optimal performance. Related...
**What are you trying to do?** Add a method to `DockerContainer` to dynamically add volume mappings **Why should it be done this way?** In memory dynamic volume bindings are incredibly...
Another part of fixing #874 (cf. #899).