Testcontainers is a Python library that provides a friendly API to run a Docker container. It is designed to create a runtime environment to use during your automatic tests.
Features
- Provides support for running Docker containers in tests
- Supports a wide range of services and databases
- Works with pytest for integration tests
- Easy setup of environment variables and dependenciesAutomatic cleanup of containers post-testing
- Highly customizable container settings
