pytest may be performing some magic under the hood (or this may be another weird interaction with fixtures) because any change that creates a new list inside the function that pytest_generate_tests calls results in the pytest fixture claiming the request object has no attribute param. I've attempted to adapt the suggested approach while having the code remain functional (and added multi-selection via comma).