This doesn't seem it coudl work for any reason than by accident. `params` is set before `pytest_generate_tests` is called. It seems the right way is to revert the change to replcae the old `pytest_generat_tests` with `@pytest.fixture`