Update documentation on multiple calls of metafunc.parametrize

This commit is contained in:
Xuan Luong 2017-09-09 20:50:45 -04:00
parent bee2c864d8
commit 696c702da7
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>`.