Skip to content

Glossary: ML in Production

Fixture (pytest)

Also written: fixtures, scope="session", conftest.py

An object pytest builds and passes to any test that names it. Session scope builds it once per run, which matters when a fixture trains a model.

Where the book teaches it

Related terms

Unit test