<div dir="ltr">Hi Brianna,<div><br></div><div>Between the two options, I would go for option 2. I don't see much benefit in an alias, as long as an early error warns the user about the mistake.</div><div><br></div><div>Wasn't there plans to eventually only allow users to use marks previously declared, instead of generating them dynamically while accessing `pytest.mark`?</div><div><br></div><div>Cheers,</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 9, 2015 at 7: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><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>