Overview of the aiohttp and Flask example components
mainThe example is divided into four main functional areas:
- Consumer: An async HTTP client implemented using
aiohttp. - Provider: A web server implemented using
Flask. - Consumer Tests: Contains the logic for contract definition and consumer-side testing.
- Provider Tests: Contains the logic for provider verification against the defined contracts.
This structure demonstrates a contract-driven development workflow where the consumer defines expectations and the provider verifies it can meet them.