1 new commit in pytest:
https://bitbucket.org/hpk42/pytest/commits/4c16e1c06b5d/
Changeset: 4c16e1c06b5d
User: hpk42
Date: 2013-12-10 10:16:27
Summary: clarify that pytest.mark.parametrize() takes a list of argvalues
and not just
arbitrary iterators. Addresses issue122.
Affected #: 1 file
diff -r e2bfc7bfd1a2e5509d064a26383fb5b0fbfe643c -r
4c16e1c06b5d0bcad11840fba22bc7604c1f1fbd _pytest/python.py
--- a/_pytest/python.py
+++ b/_pytest/python.py
@@ -140,10 +140,12 @@
def pytest_configure(config):
config.addinivalue_line("markers",
"parametrize(argnames, argvalues): call a test function multiple "
- "times passing in multiple different argument value sets. Example: "
- "@parametrize('arg1', [1,2]) would lead to two calls of the decorated "
- "test function, one with arg1=1 and another with arg1=2."
- " see http://pytest.org/latest/parametrize.html for more info and "
+ "times passing in different arguments in turn. argvalues generally "
+ "needs to be a list of values if argnames specifies only one name "
+ "or a list of tuples of values if argnames specifies multiple names. "
+ "Example: @parametrize('arg1', [1,2]) would lead to two calls of the "
+ "decorated test function, one with arg1=1 and another with arg1=2."
+ "see http://pytest.org/latest/parametrize.html for more info and "
"examples."
)
config.addinivalue_line("markers",
Repository URL: https://bitbucket.org/hpk42/pytest/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
_______________________________________________
pytest-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pytest-commit