Consumer-Driven Contract Testing with Pact and Python
This repo is part of a Medium post where I discuss how to use Pact as platform to add CDC testing to your projects.
Instructions
- Create venv and install requirements
python3 -m venv venv
pip install -r requirements.txt
- Ensure the Pact broker is running and up
Consumer
cd consumer
./run_pytest.sh
Provider
cd provider
./run_pytest.sh