Use ``pytest.`` prefix for outcomes

This commit is contained in:
Bruno Oliveira 2018-02-27 17:15:08 -03:00
parent 400558cc9c
commit 7ba8a4ee75
1 changed files with 16 additions and 16 deletions

View File

@ -21,46 +21,46 @@ You can use the following functions in your test, fixture or setup
functions to force a certain test outcome. Note that most often functions to force a certain test outcome. Note that most often
you can rather use declarative marks, see :ref:`skipping`. you can rather use declarative marks, see :ref:`skipping`.
fail pytest.fail
~~~~ ~~~~~~~~~~~
.. autofunction:: _pytest.outcomes.fail .. autofunction:: _pytest.outcomes.fail
skip pytest.skip
~~~~ ~~~~~~~~~~~
.. autofunction:: _pytest.outcomes.skip .. autofunction:: _pytest.outcomes.skip
importorskip pytest.importorskip
~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~
.. autofunction:: _pytest.outcomes.importorskip .. autofunction:: _pytest.outcomes.importorskip
xfail pytest.xfail
~~~~~ ~~~~~~~~~~~~
.. autofunction:: _pytest.outcomes.xfail .. autofunction:: _pytest.outcomes.xfail
exit pytest.exit
~~~~ ~~~~~~~~~~~
.. autofunction:: _pytest.outcomes.exit .. autofunction:: _pytest.outcomes.exit
main pytest.main
~~~~ ~~~~~~~~~~~
.. autofunction:: _pytest.config.main .. autofunction:: _pytest.config.main
raises pytest.raises
------ -------------
.. autofunction:: _pytest.python_api.raises .. autofunction:: _pytest.python_api.raises
:with: excinfo :with: excinfo
Examples at :ref:`assertraises`. Examples at :ref:`assertraises`.
deprecated_call pytest.deprecated_call
--------------- ----------------------
.. autofunction:: _pytest.recwarn.deprecated_call .. autofunction:: _pytest.recwarn.deprecated_call
:with: :with: