mirror of https://github.com/eyhc1/rendercv.git
debug run_latex tests
This commit is contained in:
parent
025f9da53b
commit
e37630e890
|
@ -391,7 +391,7 @@ def run_latex(latex_file_path):
|
||||||
f"{latex_file}",
|
f"{latex_file}",
|
||||||
],
|
],
|
||||||
cwd=os.path.dirname(latex_file_path),
|
cwd=os.path.dirname(latex_file_path),
|
||||||
# stdout=subprocess.DEVNULL, # suppress latexmk output
|
stdout=subprocess.DEVNULL, # suppress latexmk output
|
||||||
)
|
)
|
||||||
end_time = time.time()
|
end_time = time.time()
|
||||||
time_taken = end_time - start_time
|
time_taken = end_time - start_time
|
||||||
|
|
|
@ -407,8 +407,18 @@ class TestDataModel(unittest.TestCase):
|
||||||
|
|
||||||
pdf_file = rendering.run_latex(latex_file_path)
|
pdf_file = rendering.run_latex(latex_file_path)
|
||||||
|
|
||||||
|
# read the log file:
|
||||||
|
log_file_path = os.path.join(
|
||||||
|
os.path.dirname(__file__), "reference_files", "John_Doe_CV.log"
|
||||||
|
)
|
||||||
|
with open(log_file_path, "r") as file:
|
||||||
|
log_file_content = file.read()
|
||||||
|
|
||||||
|
print(log_file_content)
|
||||||
|
|
||||||
# Check if the output file exists:
|
# Check if the output file exists:
|
||||||
self.assertTrue(os.path.exists(pdf_file))
|
self.assertTrue(os.path.exists(pdf_file))
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|
Loading…
Reference in New Issue