Skip to content

Glossary: AI App Interfaces

monkeypatch

Also written: monkeypatch.setenv, monkeypatch.delenv, monkeypatch.setattr

A pytest fixture that changes things, such as environment variables, for one test only. Pytest undoes the change afterward.

Where the book teaches it

Related terms

pytestAppTestDemo mode