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 is going on?

I found no way to convert the current `container.exec()` based check function to any of the currently existing `WaitStartegies` and so I added `RunFunctionWaitStrategy` which can be used to convert...

In https://github.com/testcontainers/testcontainers-python/pull/676 for copying to/from `DockerContainer`, it was suggested that we should clarify the interface & usage a bit before proceeding. This PR aims to push that conversation forward with...

Related to #884 Trying to replace the old generic.py in core to a nicer version under the generic module. `SqlContainer` its not as good (in being generic) as `ServerContainer` but...

**Describe the bug** I am trying to create a table within a SqlServer container during start up. I am running the necessary command via the `exec` method, but said method...

**Describe the bug** `DockerClient.run()` errors out on systems where the auto-detected network returns subnets with the host bit set. Turns out, in `DockerClient.find_host_network()` each identified subnet is validated by instantiating...

Add testcontainer for [CrateDB](https://cratedb.com/), please when merging squash commits accordingly

Related to https://github.com/testcontainers/testcontainers-python/issues/874. Since those containers first need to be started to know their exposed ports, we cannot use `DockerContainer._wait_strategy`. We have to keep checking logs manually in their own...

This utils method runs containers on the same context manager. This ensures that the passed containers are run in order and cleaned up. The main use case is to be...