This example shows using WireMock to mock your services is by using the provided WireMockContainer
that uses testcontainers-python
and provisions WireMock as a test container on-demand.
See the step-by-step guide here
- Python 3.7 or above
- Pip 20.0.0 or above (use
apt install python3-pip
, for example) - Pytest 7.3.0 or above (use
pip install pytest
) - Testcontainers 3.5.0 or above (use
pip install testcontainers
)
pip install wiremock
pytest test.py -v