testcontainers-python icon indicating copy to clipboard operation
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.

Results 281 testcontainers-python issues
Sort by recently updated
recently updated
newest added

**What are you trying to do?** I would like to be able to build and run docker compose containers using environment variables not stored in an env file. We are...

🚀 enhancement

### Linked Issue https://github.com/testcontainers/testcontainers-python/issues/662 ### Benefits of Having This Container 1. **Optimized Performance**: JAX uses XLA to compile and run NumPy programs on GPUs, which can significantly speed up numerical...

community-feat

**What are you trying to do?** Add missing implementation of ```docker run --env-file ...``` **Why should it be done this way?** Users should not be required to load each env...

🚀 enhancement

I'm trying to bind udp ports: ```py def telegraf(network: Network): ctr = DockerContainer(image="telegraf:1.31.1") ctr.with_volume_mapping(f"{CURRENT_DIR}/telegraf_test.conf", "/etc/telegraf/telegraf.d/telegraf_test.conf") ctr.with_exposed_ports("8094/tcp") # Telegraf ports ctr.with_bind_ports("8125/udp", "8125/udp") ctr.with_bind_ports("8092/udp", "8092/udp") _connect_to_network(ctr, network, "telegraf") return ctr ``` It...

🚀 enhancement

**What are you trying to do?** Unit testing of Mongodb transactions. **Why should it be done this way?** [mongomock](https://github.com/mongomock/mongomock) can often be used in unit testing of mongodb-related functionality. It's...

🚀 enhancement
contributions-welcome

Used same wording as for modules/aws/testcontainers/aws/aws_lambda.py

good-to-merge-when-gha-wakes-back-up

If fails to start, since `tc_start` assumes that the container is using host networking ```py from docker.types import EndpointConfig from testcontainers.core.container import DockerContainer from testcontainers.core.network import Network from testcontainers.kafka import...

**Describe the bug** The `testcontainers.core.waiting_utils.wait_for_logs` keeps waiting despite the container has exited. This can be confusing if there is a long wait time. **To Reproduce** ```python from testcontainers.core import container,...

**Describe the bug** Since we enabled the code coverage using [Codecov](https://app.codecov.io/gh/testcontainers/testcontainers-python/) Getting the error ```Please upload report for BASE (main@####). ``` **To Reproduce** Just open a PR with any change:...

solves https://github.com/testcontainers/testcontainers-python/issues/665

intend to merge this or some version of it