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.
Found via `typos --hidden --format brief`
**Describe the bug** Testcontainers behaves incredibly flaky when running tests in parallel with `pytest-xdist`. Specifically containers and networks are destroyed prematurely resulting in network connections being interrupted, ports being reassigned...
Aims for this PR: - Include `_configure()` and `_wait_until_ready()` hooks in base `DockerContainer` image to be used by all container implementations in need of a configuration and readiness step. -...
**What are you trying to do?** I'm writing integration tests for a Python project (https://github.com/f18m/ha-alarm-raspy2mqtt) that publishes messages to an MQTT broker. I would like to use testcontainers to create...
**Describe the bug** Not sure if this is testcontainers or localstack, I have a testcontainers localstack image running on bitbucket the only different is the pro version. Anyone else had...
**What are you trying to do?** In order to do meaningful tests using my fresh database, I wish to load arbitrary SQL scripts from my DbContainer-s. I can do (and...
Bug: `ConnectionRefusedError: [Errno 111] Connection refused` via docker-compose on Github Actions
**Describe the bug** This seems potentially related to https://github.com/testcontainers/testcontainers-python/issues/517 and https://github.com/testcontainers/testcontainers-python/issues/475 TLDR; I am able to connect to the PG testcontainer from within docker running locally on a macbook, but...
**Describe the bug** The return type of `exec` of `DockerContainer` is defined as `tuple[int, str]` while it is `tuple[int, bytes]` at runtime.
**Describe the bug** I'm new to testcontainers and have been working on getting it set up to run MongoDB tests in Python. I found https://testcontainers.com/guides/getting-started-with-testcontainers-for-python/ which instructs to install `testcontainers-postgres`,...