is actually a new feature, the syntax: pytest.mark.parametrize("arg1,arg2", ...)

This commit is contained in:
holger krekel 2013-09-27 14:15:53 +02:00
parent 9ddfd62848
commit 209a0cd5b2
1 changed files with 6 additions and 4 deletions

View File

@ -52,6 +52,12 @@ new features:
don't run teardownX. This internally introduces a new method "node.addfinalizer()"
helper which can only be called during the setup phase of a node.
- simplify pytest.mark.parametrize() signature: allow to pass a CSV-separated string
to specify argnames. For example:
``pytest.mark.parametrize("input,expected", [(1,2), (2,3)])``
works as well as the previous:
``pytest.mark.parametrize(("input", "expected"), ...)``.
- add support for setUpModule/tearDownModule detection, thanks Brian Okken.
- integrate tab-completion on options through use of "argcomplete".
@ -114,10 +120,6 @@ Bug fixes:
- fix issue316 - properly reference collection hooks in docs
- simplify parametrize() signature: allow to pass a CSV-separated string
to specify argnames. For example: ``pytest.mark.parametrize("input,expected", [(1,2), (2,3)])`` is possible now in addition to the prior
``pytest.mark.parametrize(("input", "expected"), ...)``.
- fix issue 306 - cleanup of -k/-m options to only match markers/test
names/keywords respectively. Thanks Wouter van Ackooy.