That will help - thanks On Wednesday, February 11, 2015 at 4:23:13 PM UTC-5, Tom Lazar wrote: > > have you looked into pytest’s parametrize feature? sounds like it could > apply to your case… > > http://pytest.org/latest/parametrize.html > > hth, > > tom > > On 11 Feb 2015, at 21:12, Robert Daniels <[email protected] > <javascript:>> wrote: > > > I am testing some code and want to call a single test function numerous > times. > > Ideally I would iterate a list of parameters, and call the test function > for each test param, but I would like to see a test result for each. > > Not sure this is possible with WebTest, treat each iteration as an > individual success-fail, instead of writing 20 separate tests for the 20 > different parameters. > > This also opens the door for 'feeding' a text-script type file where the > test parameters would be in an external file, and the python code just > loads and iterates the list. > > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:>. > To post to this group, send email to [email protected] > <javascript:>. > Visit this group at http://groups.google.com/group/pylons-discuss. > For more options, visit https://groups.google.com/d/optout. > > >
-- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pylons-discuss. For more options, visit https://groups.google.com/d/optout.
