/pact-python-demo

CDC Testing with Pact, Pact broker and Python

Primary LanguagePython

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

  1. Create venv and install requirements
python3 -m venv venv
pip install -r requirements.txt
  1. Ensure the Pact broker is running and up

Consumer

cd consumer
./run_pytest.sh

Provider

cd provider
./run_pytest.sh