[TIP] Plugin API for nose: Expanding one test case into many
kumar.mcmillan at gmail.com
Tue Jul 22 08:05:36 PDT 2008
On Tue, Jul 22, 2008 at 3:55 AM, Ben Finney <ben+python at benfinney.id.au> wrote:
> "Kumar McMillan" <kumar.mcmillan at gmail.com> writes:
>> This sounds interesting and I'm curious but I don't fully understand
>> it. Could you point me to some examples of writing test scenarios
>> then adapting them?
> Did you succeed with this? Do you have any insights to share on the
> bugs described in this thread?
I'm still having a hard time understanding how one would transform a
test case into multiple copies. Typically I would do this through
class inheritance but what I don't like about that is the test code
starts to get obfuscated in the chain of parent classes. I read
through the doc strings but I think I need an example like "here is a
test case that has been transformed into multiple copies" (with actual
code). I read through your tests too but it was importing a module
called sample_scenarios and that wasn't present in the distribution.
More information about the testing-in-python