Hi, I was wondering about the pytest_generate_tests which can make many parameterise test from 1 test function.
When I have many tests and I want to parameterise a number of them the pytest_generate_tests function has to have a if metafunc.function == xxx elif metafunc.function == yyy etc. This means a big switch statement on which function it is. It also means that parameterised data for a function may be a long way from it. This can happen easy when have a test module per source module. Are there any ideas maybe for a pytest_generate_tests for each function that needs to be parameterised? Maybe like pytest_generate_tests__myfunc(metafunc) which can create many tests for the test_myfunc ? Just curious if this would be a good idea or not. :) _______________________________________________ py-dev mailing list py-dev@codespeak.net http://codespeak.net/mailman/listinfo/py-dev