[Tutor] Questions as to how to run the same unit test multiple times on varying input data.

boB Stepp robertvstepp at gmail.com
Sat Sep 24 11:17:04 EDT 2016


On Sat, Sep 24, 2016 at 2:04 AM, Ben Finney <ben+python at benfinney.id.au> wrote:
> Bob, you may want to also subscribe to the specific forum for testing in
> Python <URL:http://lists.idyll.org/listinfo/testing-in-python>. You're
> beyond the beginner material that's usually discussed on this Tutor forum.

Honestly, Ben, I thought that this would be a "basic" set of issues
and I was just missing something obvious in unittest.  As I just
mentioned to Walter off-list, it just seemed "common sense" to
exercise a given test with varying data and to not repeat myself
unnecessarily (DRY) in writing the tests.

Anyway I have been a subscriber for TIP for some time (Per an earlier
suggestion a while back, perhaps even yours? ~(:>)) and will continue
this there.

Thanks, Ben!

boB


More information about the Tutor mailing list