improve docstring for metafunc.parametrize()

This commit is contained in:
holger krekel 2012-11-21 10:13:44 +01:00
parent 03445913e0
commit b97de57ebe
2 changed files with 7 additions and 2 deletions

View File

@ -5,6 +5,8 @@ Changes between 2.3.4 and 2.3.5dev
- move long description of distribution into README.rst
- improve docstring for metafunc.parametrize()
Changes between 2.3.3 and 2.3.4
-----------------------------------

View File

@ -643,8 +643,11 @@ class Metafunc(FuncargnamesCompatAttr):
:arg argnames: an argument name or a list of argument names
:arg argvalues: a list of values for the argname or a list of tuples of
values for the list of argument names.
:arg argvalues: The list of argvalues determines how often a test is invoked
with different argument values. If only one argname was specified argvalues
is a list of simple values. If N argnames were specified, argvalues must
be a list of N-tuples, where each tuple-element specifies a value for its
respective argname.
:arg indirect: if True each argvalue corresponding to an argname will
be passed as request.param to its respective argname fixture