def test_generated_files_added_latex_log_ext_array(): with wrap() as wrapper: doc = DocNode("example.tex|latex", contents=LATEX, latex={'add-new-files': ['.log']}, wrapper=wrapper) wrapper.run_docs(doc)
def test_generated_files_not_added_by_default(): with wrap() as wrapper: doc = DocNode( "generate-data.py|py", contents="""with open("abc.txt", "w") as f: f.write("hello")""", wrapper=wrapper) wrapper.run_docs(doc)
def test_generated_files_added_latex(): with wrap() as wrapper: doc = DocNode("example.tex|latex", contents=LATEX, latex={'add-new-files': True}, wrapper=wrapper) wrapper.run_docs(doc)
def test_generated_files_added_when_requested_underscore(): with wrap() as wrapper: doc = DocNode( "generate-data.py|py", contents="""with open("abc.txt", "w") as f: f.write("hello")""", py={"add_new_files": True}, wrapper=wrapper) wrapper.run_docs(doc)
def test_generated_files_with_additional_filters(): with wrap() as wrapper: doc = DocNode("example.tex|latex", contents=LATEX, latex={ 'add-new-files': ['.aux'], 'additional-doc-filters': { '.aux': 'wc' } }, wrapper=wrapper) wrapper.run_docs(doc)
def test_generated_files_not_added_by_default_latex(): with wrap() as wrapper: doc = DocNode("example.tex|latex", contents=LATEX, wrapper=wrapper) wrapper.run_docs(doc)