import functools


def repeat(num):
    """ decorator for repeating tests several times """
    def decorator(f):
        @functools.wraps(f)
        def wrapper(*args, **kwargs):
            for _ in range(num):
                f(*args, **kwargs)
        return wrapper
    return decorator