[TIP] new test parametrization / deprecating "yield"

holger krekel holger at merlinux.eu
Thu May 14 05:08:05 PDT 2009


On Wed, May 13, 2009 at 15:27 -0400, Doug Philips wrote:
> On or about Wednesday, May 13, 2009, at 01:16PM, holger krekel:
> >thanks to Michael, Doug, Titus and everybody else's comments
> >and interest on generative tests i'd eventually cleaned up 
> >the docs and wrote up a blog post about py.test's new 
> >parametrized tests here:
> >
> >    http://tetamap.wordpress.com/2009/05/13/parametrizing
> 
> Nice!

thanks!
 
> I am not clear from that post and the py.test funcargs page
> it links to, just where/how many pytest_generate_tests
> functions there can be and when in the test-running-timeline
> they/it are run.

I see.  I've written up a new blog post which hopefully clarifies 
this and explains how the generate-tests hook can live 
in a "local" or "global" plugin:

    http://tetamap.wordpress.com/2009/05/14/putting-test-hooks

best,
holger
 
-- 
Metaprogramming, Python, Testing: http://tetamap.wordpress.com
Python, PyPy, pytest contracting: http://merlinux.eu 



More information about the testing-in-python mailing list