

def pytest_generate_tests(metafunc):
    param_names = ['variant', 'ctor_args', 'offset']
    cases = {
        'BruteForce': ('CollisionManagerBruteForce', [], (2.2, 3.7)),
        "Grid, target don't crosses bucket edges": ('CollisionManagerGrid', [0.0, 100.0, 0.0, 100.0, 4.0, 4.0], (2.0, 2.0)),
        'Grid, target crosses horizontal bucket edge': ('CollisionManagerGrid', [0.0, 100.0, 0.0, 100.0, 4.0, 4.0], (2.0, 4.0)),
        'Grid, target crosses vertical bucket edge': ('CollisionManagerGrid', [0.0, 100.0, 0.0, 100.0, 4.0, 4.0], (4.0, 2.0)),
        'Grid, target crosses vertical and horizontal bucket edges': ('CollisionManagerGrid', [0.0, 100.0, 0.0, 100.0, 4.0, 4.0], (4.0, 4.0)),
        'Grid, target bigger than cell': ('CollisionManagerGrid', [0.0, 100.0, 0.0, 100.0, 2.0, 2.0], (2.0, 2.0)),
    }
    for name in cases:
        param_names.addcall(id=name, funcargs=dict(zip(param_names, cases[name])))

dataset/ETHPy150Open los-cocos/cocos/utest/test_collision_model.py pytest_generate_tests/VarMisuse@184/305 `metafunc`->`param_names`