diff options
author | Xuan Luong <luonghoaixuan@gmail.com> | 2017-09-09 20:50:45 -0400 |
---|---|---|
committer | Xuan Luong <luonghoaixuan@gmail.com> | 2017-09-10 00:23:23 -0400 |
commit | 696c702da78ad162294bb6a7dd9d2b36fed6a3aa (patch) | |
tree | f4909a0e5b384ca502880d87443bdfe887f99e02 | |
parent | bee2c864d89eb537bc91a40f3e35daa355254fbe (diff) | |
download | pytest-696c702da78ad162294bb6a7dd9d2b36fed6a3aa.tar.gz |
Update documentation on multiple calls of metafunc.parametrize
-rw-r--r-- | changelog/1548.doc | 1 | ||||
-rw-r--r-- | doc/en/parametrize.rst | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/changelog/1548.doc b/changelog/1548.doc new file mode 100644 index 000000000..84ad8f10c --- /dev/null +++ b/changelog/1548.doc @@ -0,0 +1 @@ +Add note in ``parametrize.rst`` about calling ``metafunc.parametrize`` multiple times.
\ No newline at end of file diff --git a/doc/en/parametrize.rst b/doc/en/parametrize.rst index d1d47c229..6215cf133 100644 --- a/doc/en/parametrize.rst +++ b/doc/en/parametrize.rst @@ -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>`. |