Merge pull request #2396 from johndgiese/patch-1

Clarify opening paragraph of parameterization docs
This commit is contained in:
Ronny Pfannschmidt 2017-05-09 21:36:50 +02:00 committed by GitHub
commit 7ee2db23df
1 changed files with 7 additions and 8 deletions

View File

@ -9,17 +9,16 @@
Parametrizing fixtures and test functions Parametrizing fixtures and test functions
========================================================================== ==========================================================================
pytest supports test parametrization in several well-integrated ways: pytest enables test parametrization at several levels:
- :py:func:`pytest.fixture` allows to define :ref:`parametrization - :py:func:`pytest.fixture` allows one to :ref:`parametrize fixture
at the level of fixture functions <fixture-parametrize>`. functions <fixture-parametrize>`.
* `@pytest.mark.parametrize`_ allows to define parametrization at the * `@pytest.mark.parametrize`_ allows one to define multiple sets of
function or class level, provides multiple argument/fixture sets arguments and fixtures at the test function or class.
for a particular test function or class.
* `pytest_generate_tests`_ enables implementing your own custom * `pytest_generate_tests`_ allows one to define custom parametrization
dynamic parametrization scheme or extensions. schemes or extensions.
.. _parametrizemark: .. _parametrizemark:
.. _`@pytest.mark.parametrize`: .. _`@pytest.mark.parametrize`: