Update parametrize.rst
This commit is contained in:
parent
73eccb4c36
commit
70461d1ead
|
@ -123,12 +123,8 @@ To get all combinations of multiple parametrized arguments you can stack
|
|||
def test_foo(x, y):
|
||||
pass
|
||||
|
||||
This will run the test with the arguments set to ``x=0/y=2``, ``x=0/y=3``, ``x=1/y=2`` and
|
||||
``x=1/y=3``.
|
||||
|
||||
Note that due to how decorators work in python the tests actually exhaust parameters in
|
||||
the order of the decorators. For example this program run in the order ``x=0/y=2``,
|
||||
``x=1/y=2``, ``x=0/y=3``, and ``x=1/y=3``.
|
||||
This will run the test with the arguments set to ``x=0/y=2``,``x=1/y=2``,
|
||||
``x=0/y=3``, and ``x=1/y=3`` exhausting parameters in the order of the decorators.
|
||||
|
||||
.. _`pytest_generate_tests`:
|
||||
|
||||
|
|
Loading…
Reference in New Issue