-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
type: enhancementnew feature or API change, should be merged into features branchnew feature or API change, should be merged into features branch
Description
Originally reported by: Nenad Ognjanovic (BitBucket: bgr_, GitHub: bgr_)
Consider adding an alias parameterize 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 parameterize doesn't exist.
#!python
import pytest
@pytest.mark.parameterize('arg, expected', [
(1, 1),
])
def test_confusion(arg, expected):
assert arg == expected
Metadata
Metadata
Assignees
Labels
type: enhancementnew feature or API change, should be merged into features branchnew feature or API change, should be merged into features branch