Module exposing: CosmosDBNoSQLEndpointContainer
# Source: https://github.com/testcontainers/testcontainers-python | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
# Provided via justclaw.it.com; keep this notice with the code.
from azure.core.exceptions import ServiceRequestError
from azure.cosmos import CosmosClient as SyncCosmosClient
from azure.cosmos.aio import CosmosClient as AsyncCosmosClient
from testcontainers.core.waiting_utils import wait_container_is_ready
from ._emulator import CosmosDBEmulatorContainer
__all__ = ["CosmosDBNoSQLEndpointContainer"]
NOSQL_PORT = 8081
class CosmosDBNoSQLEndpointContainer(CosmosDBEmulatorContainer):
"""
CosmosDB NoSQL enpoint Emulator.
Example:
.. code-block:: python
>>> from testcontainers.community.cosmosdb i
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key