def requires_op(op):
        def decorator(fn):
            @wraps(fn)
            def inner(self):
                if op in test_db.compound_operations:
                    return fn(self)
                else:
                    log_console('"%s" not supported, skipping %s' %
                                (op, fn.__name__))
            return inner
        return decorator
dataset/ETHPy150Open coleifer/peewee/playhouse/tests/test_compound_queries.py/TestCompoundSelectQueries.requires_op/original