Is there any reason not to fold this into `pytest_generate_tests`?