pytest
Builtin Fixtures
pytest provides several useful built-in fixtures. Below are some of the most commonly used ones, explained at a high level. For a complete list of all pytest built-in fixtures, see the official reference. If you want to explore any specific fixture in more depth, refer to its dedicated documentation page.
Parametrizing
Fixtures can be parametrized using params=[...]. The elements can be accessed using the special pytest's built-in request fixture.
request
The request fixture is a special fixture that provides information about the requesting test function. It also exposes a param attribute when the fixture is parametrized, as shown in the example above.
