Skip to content

Glossary: Python Beyond the Basics

monkeypatch

A pytest fixture that temporarily replaces something for one test, such as swapping `requests.get` for a fake so a test doesn't need the internet.

Where the book teaches it

Related terms

fixturepytest