Glossary: Building APIs with FastAPI
Fixture
Also written: fixtures, pytest fixture
A pytest function that prepares something tests need, such as a fresh database session or a logged-in header. A test gets it by naming it as a parameter.
Glossary: Building APIs with FastAPI
Also written: fixtures, pytest fixture
A pytest function that prepares something tests need, such as a fresh database session or a logged-in header. A test gets it by naming it as a parameter.