An introduction to property-based testing in Python
In this pytest tutorial, you'll learn how to monkey patch global variables.