From 7ba8a4ee7591ccbb78bca34ec36d7c29c81e171c Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Tue, 27 Feb 2018 17:15:08 -0300 Subject: [PATCH] Use ``pytest.`` prefix for outcomes --- doc/en/reference.rst | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/doc/en/reference.rst b/doc/en/reference.rst index d89d2f1e08d..d00b20ddf93 100644 --- a/doc/en/reference.rst +++ b/doc/en/reference.rst @@ -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 you can rather use declarative marks, see :ref:`skipping`. -fail -~~~~ +pytest.fail +~~~~~~~~~~~ .. autofunction:: _pytest.outcomes.fail -skip -~~~~ +pytest.skip +~~~~~~~~~~~ .. autofunction:: _pytest.outcomes.skip -importorskip -~~~~~~~~~~~~ +pytest.importorskip +~~~~~~~~~~~~~~~~~~~ .. autofunction:: _pytest.outcomes.importorskip -xfail -~~~~~ +pytest.xfail +~~~~~~~~~~~~ .. autofunction:: _pytest.outcomes.xfail -exit -~~~~ +pytest.exit +~~~~~~~~~~~ .. autofunction:: _pytest.outcomes.exit -main -~~~~ +pytest.main +~~~~~~~~~~~ .. autofunction:: _pytest.config.main -raises ------- +pytest.raises +------------- .. autofunction:: _pytest.python_api.raises :with: excinfo Examples at :ref:`assertraises`. -deprecated_call ---------------- +pytest.deprecated_call +---------------------- .. autofunction:: _pytest.recwarn.deprecated_call :with: