have you looked into pytest’s parametrize feature? sounds like it could apply to your case…
http://pytest.org/latest/parametrize.html <http://pytest.org/latest/parametrize.html> hth, tom > On 11 Feb 2015, at 21:12, Robert Daniels <robertdaniels2...@gmail.com> 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 pylons-discuss+unsubscr...@googlegroups.com > <mailto:pylons-discuss+unsubscr...@googlegroups.com>. > To post to this group, send email to pylons-discuss@googlegroups.com > <mailto:pylons-discuss@googlegroups.com>. > Visit this group at http://groups.google.com/group/pylons-discuss > <http://groups.google.com/group/pylons-discuss>. > For more options, visit https://groups.google.com/d/optout > <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 pylons-discuss+unsubscr...@googlegroups.com. To post to this group, send email to pylons-discuss@googlegroups.com. Visit this group at http://groups.google.com/group/pylons-discuss. For more options, visit https://groups.google.com/d/optout.
signature.asc
Description: Message signed with OpenPGP using GPGMail