Pytest API and builtin fixturesΒΆ

Most of the information of this page has been moved over to Command Reference.

For information on plugin hooks and objects, see Writing plugins.

For information on the pytest.mark mechanism, see Marking test functions with attributes.

For information about fixtures, see pytest fixtures: explicit, modular, scalable. To see a complete list of available fixtures, type:

$ pytest -q --fixtures

You can also interactively ask for help, e.g. by typing on the Python interactive prompt something like:

import pytest