Skip to content

Glossary: System Design Basics

pytest

Also written: fixture, @pytest.fixture

A Python testing tool that runs test functions; `pytest -q` prints a short summary like `3 passed`. A fixture is a helper function pytest runs before each test that asks for it, such as one that makes a fresh database.

Where the book teaches it

Related terms

Clock (injectable clock / fake clock)