[Pytest-commit] Issue #463: Add alias for parametrize or provide better error reporting (hpk42/pytest)

bgr_ issues-reply at bitbucket.org
Fri Feb 14 11:22:58 CET 2014


New issue 463: Add alias for parametrize or provide better error reporting
https://bitbucket.org/hpk42/pytest/issue/463/add-alias-for-parametrize-or-provide

bgr_:

Consider adding an alias paramet**e**rize for parametrize, since it's a valid spelling but using it in pytest will give a misleading error message - for the code below error message will say *"fixture 'arg' not found"*, not mentioning that paramet**e**rize doesn't exist.
```
#!python

import pytest

@pytest.mark.parameterize('arg, expected', [
    (1, 1),
])
def test_confusion(arg, expected):
    assert arg == expected
```




More information about the pytest-commit mailing list