Python library for Testcontainers that enables embedding Microcks into your unit tests with lightweight, throwaway instances.
Note: This package is not yet published on PyPI. Install directly from GitHub:
pip install git+https://github.com/Caesarsage/microcks-testcontainers-python.gitfrom microcks_testcontainers import MicrocksContainer
with MicrocksContainer().with_main_artifacts(["my-api.yaml"]) as mc:
endpoint = mc.get_rest_mock_endpoint("My API", "1.0")
# Use the endpoint in your tests