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
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
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