2018-02-27 07:27:15 +08:00
|
|
|
:orphan:
|
2010-11-06 06:37:31 +08:00
|
|
|
|
2010-11-18 21:56:16 +08:00
|
|
|
.. _`pytest helpers`:
|
|
|
|
|
2012-10-09 20:35:17 +08:00
|
|
|
Pytest API and builtin fixtures
|
2010-11-06 06:37:31 +08:00
|
|
|
================================================
|
|
|
|
|
2018-02-27 07:27:15 +08:00
|
|
|
|
|
|
|
Most of the information of this page has been moved over to :ref:`reference`.
|
2012-10-09 20:35:17 +08:00
|
|
|
|
|
|
|
For information on plugin hooks and objects, see :ref:`plugins`.
|
|
|
|
|
|
|
|
For information on the ``pytest.mark`` mechanism, see :ref:`mark`.
|
2010-11-06 06:37:31 +08:00
|
|
|
|
2018-02-27 07:27:15 +08:00
|
|
|
For information about fixtures, see :ref:`fixtures`. To see a complete list of available fixtures, type::
|
2010-11-06 06:37:31 +08:00
|
|
|
|
2018-02-27 07:27:15 +08:00
|
|
|
$ pytest -q --fixtures
|
2012-10-09 20:35:17 +08:00
|
|
|
|
|
|
|
|
2018-02-27 07:27:15 +08:00
|
|
|
You can also interactively ask for help, e.g. by typing on the Python interactive prompt something like::
|
2010-11-06 06:37:31 +08:00
|
|
|
|
2018-02-27 07:27:15 +08:00
|
|
|
import pytest
|
|
|
|
help(pytest)
|
2012-10-09 20:35:17 +08:00
|
|
|
|
2011-10-21 21:45:56 +08:00
|
|
|
|
2010-11-06 06:37:31 +08:00
|
|
|
|
|
|
|
|