Author fperez
Recipients fperez
Date 2010-02-10.02:21:19
SpamBayes Score 1.05519e-05
Marked as misclassified No
Message-id <1265768482.24.0.694001982317.issue7897@psf.upfronthosting.co.za>
In-reply-to
Content
IPython has unittest-based parametric testing (something nose has but
which produces effectively undebuggable tests, while this approach
gives perfectly debuggable ones).  The code lives here for 2.x and
3.x:

http://bazaar.launchpad.net/~ipython-dev/ipython/trunk/annotate/head%3A/IPython/testing/_paramtestpy2.py

http://bazaar.launchpad.net/~ipython-dev/ipython/trunk/annotate/head%3A/IPython/testing/_paramtestpy3.py

we import them into our public decorators module for actual use:

http://bazaar.launchpad.net/~ipython-dev/ipython/trunk/annotate/head%3A/IPython/testing/decorators.py

Simple tests showing them in action are here:

http://bazaar.launchpad.net/%7Eipython-dev/ipython/trunk/annotate/head%3A/IPython/testing/tests/test_decorators.py#L45

The code is all BSD and we'd be more than happy to see it used
upstream; the less we have to carry the better.

If there is interest in this code, I'm happy to sign a PSF contributor agreement, the code is mostly my authorship. I received help for the 3.x version on the Testing in Python mailing list, I would handle asking for permission on-list if there is interest in including this.
History
Date User Action Args
2010-02-10 02:21:22fperezsetrecipients: + fperez
2010-02-10 02:21:22fperezsetmessageid: <1265768482.24.0.694001982317.issue7897@psf.upfronthosting.co.za>
2010-02-10 02:21:20fperezlinkissue7897 messages
2010-02-10 02:21:19fperezcreate