示例#1
0
    def test_pep8(self):
        fLOG(
            __file__,
            self._testMethodName,
            OutputPrint=__name__ == "__main__")

        if is_travis_or_appveyor():
            return

        this = os.path.abspath(__file__.replace(".pyc", ".py"))
        try:
            diff = remove_extra_spaces_and_pep8(this)
        except IndexError as e:
            warnings.warn("probably an issue with pep8: " + str(e))
            return
        assert diff < 10
示例#2
0
    def test_paths(self):
        fLOG(
            __file__,
            self._testMethodName,
            OutputPrint=__name__ == "__main__")

        if is_travis_or_appveyor():
            return
        exe = find_in_PATH("Microsoft")
        assert exe is not None
        dot = find_graphviz_dot()
        assert "dot" in dot
        pandoc = find_pandoc_path()
        if "pandoc" not in pandoc.lower():
            raise Exception(pandoc)
        latex = find_latex_path()
        if "latex" not in latex and "miktex" not in latex:
            raise Exception(latex)