コード例 #1
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
コード例 #2
0
ファイル: test_build_latex.py プロジェクト: hason/sphinx
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
ファイル: test_build_latex.py プロジェクト: JelteF/sphinx
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