Update parametrize.rst

This commit is contained in:
Austin 2017-12-16 09:31:48 -06:00 committed by GitHub
parent 73eccb4c36
commit 70461d1ead
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 6 deletions

View File

@ -123,12 +123,8 @@ To get all combinations of multiple parametrized arguments you can stack
def test_foo(x, y): def test_foo(x, y):
pass pass
This will run the test with the arguments set to ``x=0/y=2``, ``x=0/y=3``, ``x=1/y=2`` and This will run the test with the arguments set to ``x=0/y=2``,``x=1/y=2``,
``x=1/y=3``. ``x=0/y=3``, and ``x=1/y=3`` exhausting parameters in the order of the decorators.
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``.
.. _`pytest_generate_tests`: .. _`pytest_generate_tests`: