Hi Ernesto, maybe this is what you are looking for https://pytest.org/latest/customize.html#confval-python_functions <https://pytest.org/latest/customize.html#confval-python_functions>
hth Raphael > On 08 Jan 2016, at 17:30, Ernesto D. Luzon Jr. <[email protected]> wrote: > > Hi All, > > Is there a way to specify multiple naming conventions for test functions? > > For example, in my pytest.ini, I would like: > > [pytest] > python_functions=[given, when, then, and, but] > > > Then pytest can discover functions such as: > > def given_iam_an_author(): pass > def and_i_wrote_an_article(): pass > def when_i_do_this(): pass > def then_result_is_good(): pass > > If this functionality doesn't exist yet, any hint on which pytest code I can > play with to experiment on this? > > Many thanks, > Ernesto D. Luzon Jr. > _______________________________________________ > pytest-dev mailing list > [email protected] > https://mail.python.org/mailman/listinfo/pytest-dev
_______________________________________________ pytest-dev mailing list [email protected] https://mail.python.org/mailman/listinfo/pytest-dev
