[TIP] parametrized testing and unittest2.TestCase
marius at gedmin.as
Sun Dec 18 03:07:10 PST 2011
On Sun, Dec 18, 2011 at 09:15:18AM +0000, holger krekel wrote:
> On Sat, Dec 17, 2011 at 16:25 +1300, Robert Collins wrote:
> > testscenarios may either inspire or even help you with this.
> Since some time there is a quick port example of testscenarios to py.test:
> However, the main issue i see with parametrizing tests and dependency injection
> with unittest.TestCase is controling the life-cycle of a resource.
> How can you implement resources (with testscenarios, say) which are
> instantiated once per class or per test-run?
*cue Robert Collins jumping in and exclaiming "testresources"!*
A couple of months in the laboratory can
frequently save a couple of hours in the library.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: Digital signature
More information about the testing-in-python