Skip to content

Glossary: Running Open Models Locally

pytest

Also written: monkeypatch, assert

A Python testing tool that runs every function named `test_*`, where `assert` fails the test if the result is wrong. `monkeypatch.setenv` sets an environment variable for one test only.

Where the book teaches it

Related terms

Environment variable