def test_venv_docutils08_readme(self): fLOG(__file__, self._testMethodName, OutputPrint=__name__ == "__main__") fold = os.path.dirname(os.path.abspath(__file__)) readme = os.path.join(fold, "..", "..", "README.rst") self.assertTrue(os.path.exists(readme)) with open(readme, "r", encoding="utf8") as f: content = f.read() self.assertTrue(len(content) > 0) temp = get_temp_folder(__file__, "temp_readme") if __name__ != "__main__": # does not work from a virtual environment return from pyquickhelper.pycode import check_readme_syntax # pylint: disable=C0415 check_readme_syntax(readme, folder=temp, fLOG=fLOG)
def test_venv_docutils08_readme(self): fLOG( __file__, self._testMethodName, OutputPrint=__name__ == "__main__") fold = os.path.dirname(os.path.abspath(__file__)) readme = os.path.join(fold, "..", "..", "README.rst") self.assertTrue(os.path.exists(readme)) with open(readme, "r", encoding="utf8") as f: content = f.read() self.assertTrue(len(content) > 0) temp = get_temp_folder(__file__, "temp_readme") if __name__ != "__main__": # does not work from a virtual environment return from pyquickhelper.pycode import check_readme_syntax check_readme_syntax(readme, folder=temp, fLOG=fLOG)
def test_venv_docutils08_readme(self): fLOG( __file__, self._testMethodName, OutputPrint=__name__ == "__main__") fold = os.path.dirname(os.path.abspath(__file__)) readme = os.path.join(fold, "..", "..", "README.rst") assert os.path.exists(readme) with open(readme, "r", encoding="utf8") as f: content = f.read() temp = get_temp_folder(__file__, "temp_readme") if __name__ != "__main__": # does not work from a virtual environment return from pyquickhelper.pycode import check_readme_syntax from pyquickhelper.helpgen.markdown_helper import yield_sphinx_only_markup_for_pipy check_readme_syntax(readme, folder=temp, fLOG=fLOG)