Since testcontainers-python :material-tag: v4.7.0
The Testcontainers module for Azure Cosmos DB.
Please run the following command to add the CosmosDB module to your python dependencies:
pip install testcontainers[cosmosdb] pymongo azure-cosmos- Multi-model database support (document, key-value, wide-column, graph)
- SQL-like query language
- Automatic indexing
- Partitioning support
- Global distribution
- Built-in aggregation functions
- Container management
- Document CRUD operations
The CosmosDB container can be configured with the following parameters:
port: Port to expose (default: 8081)version: CosmosDB Emulator version to use (default: "latest")ssl_verify: Whether to verify SSL certificates (default: False)emulator_key: Emulator key for authentication (default: "C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==")