On Mon, Mar 9, 2015 at 3:25 PM, Brianna Laugher <[email protected]> wrote:
> Hello, > > > https://bitbucket.org/pytest-dev/pytest/issue/463/add-alias-for-parametrize-or-provide > > It is, I think, a relatively common and easy error for someone to type > 'pytest.mark.parameterize' instead of 'pytest.mark.parametrize'. At the > moment doing so (wrongly putting an extra 'e') results in an error like* > "fixture 'arg' not found" *which is not very revealing as to what the > problem actually is. > > Two reasonable options would be > 1) Treat parameterize as an alias of parametrize, so they behave > identically > 2) Check for the misspelling and raise a specific error about it > > What are people's thoughts about the best approach? > I've done this many, many times though now I've used it enough to know what to check for first when I see the error. 1) is easier on the user but better to have it spelled and used correctly so perhaps 2) is better. Either way, this would be a good fix. jasmine > > cheers > Brianna > > > -- > They've just been waiting in a mountain for the right moment: > http://modernthings.org/ > > _______________________________________________ > pytest-dev mailing list > [email protected] > https://mail.python.org/mailman/listinfo/pytest-dev > >
_______________________________________________ pytest-dev mailing list [email protected] https://mail.python.org/mailman/listinfo/pytest-dev
