clarify docs on Multiple Calls to metafunc.parametrize #1548
The docs say "Add new invocations to the underlying test function using the list of argvalues for the given argnames."; which would imply that you could call it multiple times to add more invocations.
It's a relatively minor issue, since you can store off into a final parametrization list then call it once later, but it should probably be noted in the docs.
Simple test of the form:
# in conftest.py def pytest_generate_tests(metafunc): metafunc.parametrize("arg1", [1, 2], scope='function') metafunc.parametrize("arg1", [3, 4], scope='function') # in test_file.py: def test_me(self, arg1): assert arg1
The output of the example above:
The text was updated successfully, but these errors were encountered: