diff --git a/rendercv/rendering.py b/rendercv/rendering.py index 35f9c4c..5d811b2 100644 --- a/rendercv/rendering.py +++ b/rendercv/rendering.py @@ -391,7 +391,7 @@ def run_latex(latex_file_path): f"{latex_file}", ], cwd=os.path.dirname(latex_file_path), - # stdout=subprocess.DEVNULL, # suppress latexmk output + stdout=subprocess.DEVNULL, # suppress latexmk output ) end_time = time.time() time_taken = end_time - start_time diff --git a/tests/test_rendering.py b/tests/test_rendering.py index 80408b6..35187f2 100644 --- a/tests/test_rendering.py +++ b/tests/test_rendering.py @@ -407,8 +407,18 @@ class TestDataModel(unittest.TestCase): 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: self.assertTrue(os.path.exists(pdf_file)) + if __name__ == "__main__": unittest.main()