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.
**Describe the bug** I was trying to pass `client_args` to the `DockerCompose` constructor. However, I get the error: ``` Traceback (most recent call last): File , in test_foo() File ,...
Ref #541, implement the feature for postgres Fix mysql "seed" feature's docstring (whoops)
**Describe the bug** [MinioContainer._healthcheck](https://github.com/testcontainers/testcontainers-python/blob/main/modules/minio/testcontainers/minio/__init__.py#L102) is decorated with `wait_container_is_ready` and calls `get_exposed_port` which is also decorated `wait_container_is_ready`. This results in a default wait time of `120*120=14400` seconds... As a workaround I...
they both have been replaced by proper `pytest` tests follow up of #714
:robot: I have created a release *beep* *boop* --- ## [4.8.3](https://github.com/testcontainers/testcontainers-python/compare/testcontainers-v4.8.2...testcontainers-v4.8.3) (2024-10-24) ### Bug Fixes * allow running all tests ([#721](https://github.com/testcontainers/testcontainers-python/issues/721)) ([f958cf9](https://github.com/testcontainers/testcontainers-python/commit/f958cf9fe62a5f3ee2dc255713ec8b16de6a767d)) * **core:** running testcontainer inside container ([#714](https://github.com/testcontainers/testcontainers-python/issues/714)) ([85a6666](https://github.com/testcontainers/testcontainers-python/commit/85a66667c23d76e87aecc6761bbb01429adb3dee))...
Follow up on the discussion in #488. The MR suggested to change to a flat layout to activate typing easily (see #305). @totallyzen brought the [argument](https://github.com/testcontainers/testcontainers-python/pull/488): > Since I wrote...
Supports: https://github.com/testcontainers/testcontainers-python/issues/305 Related : https://github.com/testcontainers/testcontainers-python/pull/691 https://github.com/testcontainers/testcontainers-python/pull/692 #700 ``` poetry run mypy --config-file pyproject.toml core/testcontainers/core/version.py Success: no issues found in 1 source file ``` Old ``` Error Summary ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━┓ ┃ File...
Supports: https://github.com/testcontainers/testcontainers-python/issues/305 Related : https://github.com/testcontainers/testcontainers-python/pull/691 https://github.com/testcontainers/testcontainers-python/pull/692 #700 Based on #504, kudos @alexanderankin ``` poetry run mypy --config-file pyproject.toml core/testcontainers/core/docker_client.py Success: no issues found in 1 source file ``` Old ```...
Fix: #706, https://github.com/testcontainers/testcontainers-python/pull/614 Now when using kwargs in the Image API, the params are passed correctly into the build ```python with DockerImage(path=dir, tag="test", buildargs={"MY_ARG": "some_arg"}) as image: ``` Added relevant...
Supports: https://github.com/testcontainers/testcontainers-python/issues/305 Related : #691 #692 ### Overview 1. Updated Mypy 2. Add a new dev script to allow easy reporting on Mypy errors (Using it in the makefile) 4....