def skip_if_stylefiles_notfound(testfunc):
    if kpsetest(*STYLEFILES) is False:
        return skip_if(
            testfunc,
            'not running latex, the required styles do not seem to be installed'
        )
    else:
        return testfunc
示例#2
0
def skip_if_requested(testfunc):
    if 'SKIP_LATEX_BUILD' in os.environ:
        msg = 'Skip LaTeX builds because SKIP_LATEX_BUILD is set'
        return skip_if(True, msg)(testfunc)
    else:
        return testfunc
示例#3
0
def skip_if_stylefiles_notfound(testfunc):
    if kpsetest(*STYLEFILES) is False:
        return skip_if(testfunc,
                       'not running latex, the required styles do not seem to be installed')
    else:
        return testfunc