def singularity26(function):
    """Decorator to set the global singularity version"""
    def wrapper(*args, **kwargs):
        hpccm.config.g_ctype = container_type.SINGULARITY
        hpccm.config.g_singularity_version = Version('2.6')
        return function(*args, **kwargs)

    return wrapper
Decorator to set the global singularity version
test/helpers.py