def pytest_generate_tests(metafunc):
    if ('delivery_methods' in metafunc.fixturenames):
        metafunc.parametrize('delivery_method', metafunc.config.getoption('delivery'))
def pytest_generate_tests(metafunc):
    if ('delivery_methods' in metafunc.fixturenames):
        metafunc.parametrize('delivery_method', metafunc.config.getoption('delivery'))