<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Mar 9, 2015 at 3:25 PM, Brianna Laugher <span dir="ltr"><<a href="mailto:brianna.laugher@gmail.com" target="_blank">brianna.laugher@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hello,<br><br><a href="https://bitbucket.org/pytest-dev/pytest/issue/463/add-alias-for-parametrize-or-provide" target="_blank">https://bitbucket.org/pytest-dev/pytest/issue/463/add-alias-for-parametrize-or-provide</a><br><br></div>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<em> "fixture 'arg' not found" </em>which is not very revealing as to what the problem actually is.<em><br></em><div><br></div><div>Two reasonable options would be<br></div><div>1) Treat parameterize as an alias of parametrize, so they behave identically<br></div><div>2) Check for the misspelling and raise a specific error about it<br><br></div><div>What are people's thoughts about the best approach?<br></div></div></blockquote><div><br></div><div>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.</div><div><br></div><div>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.</div><div><br></div><div>jasmine</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>cheers<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div>Brianna<br></div><div><br clear="all"><div><br>-- <br><div>They've just been waiting in a mountain for the right moment: <a href="http://modernthings.org/" target="_blank">http://modernthings.org/</a></div>
</div></div></font></span></div>
<br>_______________________________________________<br>
pytest-dev mailing list<br>
<a href="mailto:pytest-dev@python.org">pytest-dev@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/pytest-dev" target="_blank">https://mail.python.org/mailman/listinfo/pytest-dev</a><br>
<br></blockquote></div><br></div></div>