Tooling
pytest fixture
A function providing test dependencies, requested by naming it as a test parameter.
Why interviewers ask about it
Explicit injection over hidden setUp state, plus scopes (function, module, session) so expensive setup is not repeated per test.
Related terms
This term is part of the free Python Full-Stack interview preparation module - browse the full glossary for every definition.