def pytest_collection_modifyitems(config, items) -> None:
    "\n    Skip tests marked with '@pytest.mark.skip_for_nginx_oss' for Nginx OSS runs.\n    Skip tests marked with '@pytest.mark.appprotect' for non AP images.\n\n    :param config: pytest config\n    :param items: pytest collected test-items\n    :return:\n    "
    if (config.getoption('--ic-type') == 'nginx-ingress'):
        skip_for_nginx_oss = pytest.mark.skip(reason='Skip a test for Nginx OSS')
        for item in items:
            if ('skip_for_nginx_oss' in item.keywords):
                item.add_marker(skip_for_nginx_oss)
    if (config.getoption('--ic-type') == 'nginx-plus-ingress'):
        skip_for_nginx_plus = pytest.mark.skip(reason='Skip a test for Nginx Plus')
        for item in items:
            if ('skip_for_nginx_plus' in item.keywords):
                item.add_marker(skip_for_nginx_plus)
    if ('-ap' not in config.getoption('--image')):
        appprotect = pytest.mark.skip(reason='Skip AppProtect test in non-AP image')
        for item in items:
            if ('appprotect' in item.keywords):
                item.add_marker(appprotect)
    if (str(config.getoption('--batch-start')) != 'True'):
        batch_start = pytest.mark.skip(reason='Skipping pod restart test with multiple resources')
        for item in items:
            if ('batch_start' in item.keywords):
                item.add_marker(batch_start)
Skip tests marked with '@pytest.mark.skip_for_nginx_oss' for Nginx OSS runs.
Skip tests marked with '@pytest.mark.appprotect' for non AP images.

:param config: pytest config
:param items: pytest collected test-items
:return:
def pytest_collection_modifyitems(config, items) -> None:
    "\n    Skip tests marked with '@pytest.mark.skip_for_nginx_oss' for Nginx OSS runs.\n    Skip tests marked with '@pytest.mark.appprotect' for non AP images.\n\n    :param config: pytest config\n    :param items: pytest collected test-items\n    :return:\n    "
    if (config.getoption('--ic-type') == 'nginx-ingress'):
        skip_for_nginx_oss = pytest.mark.skip(reason='Skip a test for Nginx OSS')
        for item in items:
            if ('skip_for_nginx_oss' in item.keywords):
                item.add_marker(skip_for_nginx_oss)
    if (config.getoption('--ic-type') == 'nginx-plus-ingress'):
        skip_for_nginx_plus = pytest.mark.skip(reason='Skip a test for Nginx Plus')
        for item in items:
            if ('skip_for_nginx_plus' in item.keywords):
                item.add_marker(skip_for_nginx_plus)
    if ('-ap' not in config.getoption('--image')):
        appprotect = pytest.mark.skip(reason='Skip AppProtect test in non-AP image')
        for item in items:
            if ('appprotect' in item.keywords):
                item.add_marker(appprotect)
    if (str(config.getoption('--batch-start')) != 'True'):
        batch_start = pytest.mark.skip(reason='Skipping pod restart test with multiple resources')
        for item in items:
            if ('batch_start' in item.keywords):
                item.add_marker(batch_start)