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.
The following code fails with testcontainers-python 3.0.2: ``` from testcontainers.mongodb import MongoDbContainer with MongoDbContainer('mongo:4.2.2') as mongo_: ... db = mongo_.get_connection_client().test ... db.test.insert_one({'foo': 'bar'}) ``` with ``` Pulling image mongo:4.2.2 Container...
Are there any plans to support the HTTP wait strategy? https://www.testcontainers.org/features/startup_and_waits/#other-wait-strategies
Replicates the wait functionality available in the redis module, during the use of current version ran into an issue with mongo:4 where it was taking a little longer to start...
I tried to follow the [Docker compose example](https://testcontainers-python.readthedocs.io/en/latest/compose.html) in the documentation, but only get this error: ``` $ python test_selenium_grid.py β Creating network "testcontainers_default" with the default driver Creating testcontainers_hub_1 ......
Fixed using docker compose with the new "docker compose" api as well as the older "docker-compose" api.
When copy and pasting the example for postgres, I get this output: ``` /Users/jo/Library/Caches/pypoetry/virtualenvs/tc-mVmN3aPa-py3.10/bin/python /Users/jo/src/scratch/testcontainers/tc/main.py Pulling image postgres:9.5 Container started: 7044b0ef12a2 Waiting to be ready... Waiting to be ready... Waiting...
Add a MockServer container class. Uses the `mockserver-client` library to supply a client. Had to pin `grpcio-status` dependency for the `google-cloud-pubsub` extra as the latest version produces conflicting requirements for...
In https://github.com/testcontainers/testcontainers-python/commit/fc5f2df4ba8157d21ecbf3a9a90cd45a61049f90#diff-313a71bf8d0b95ccd84a98f198294e10a7c7086c527efb513d9c6619a12086ee the default driver of `SqlServerContainer` was changed to pymssql. Currently, I use the pyodbc driver to communicate with MSSQL databases. This is not possible anymore since then. I've...
These policies exist in testcontainers-java and are currently missing from this project. They allow you to specify when you should pull a new image.
add basic azure cosmos db emulator container - does not include importing ssl certs which is required for secure endpoint connection