Introduction
Fixtures help prepare things your tests need. Passing them as function arguments makes tests simple and clean.
When you need to set up a database connection before running tests.
When you want to create a temporary file for testing and clean it up after.
When you want to share common test data across multiple test functions.
When you want to initialize a web browser session before testing a website.