Merge pull request #2766 from xuanluong/issue-1548-docs-multiple-calls-metafunc-parametrize

Update documentation on multiple calls of metafunc.parametrize
This commit is contained in:
Bruno Oliveira 2017-09-10 02:07:06 -03:00 committed by GitHub
commit e57cc55719
2 changed files with 5 additions and 0 deletions

1
changelog/1548.doc Normal file
View File

@ -0,0 +1 @@
Add note in ``parametrize.rst`` about calling ``metafunc.parametrize`` multiple times.

View File

@ -198,6 +198,10 @@ list::
SKIP [1] test_strings.py:2: got empty parameter set ['stringinput'], function test_valid_string at $REGENDOC_TMPDIR/test_strings.py:1
1 skipped in 0.12 seconds
Note that when calling ``metafunc.parametrize`` multiple times with different parameter sets, all parameter names across
those sets cannot be duplicated, otherwise an error will be raised.
For further examples, you might want to look at :ref:`more
parametrization examples <paramexamples>`.