A Python library for mocking OpenSearch (Elasticsearch) operations in unit tests. Provides a lightweight in-memory mock that simulates OpenSearch behaviors without needing a real cluster. Current version: 3.2.0, requires Python >=3.10. Release cadence irregular.
pip install openmockVerified import paths — ran on the pinned version, not inferred.
Basic usage: use OpenMock as a context manager to mock OpenSearch client calls.
Upgrade Python to >=3.10 and use 'from openmock import OpenMock'.
Place all related OpenSearch operations within a single with block, or use the decorator form '@OpenMock()' for a whole test function.
Check the openmock documentation for the list of supported APIs. For unsupported operations, consider mocking manually or using a real test cluster.
No dependency data recorded yet.