diff --git a/rendercv/rendering.py b/rendercv/rendering.py index 4b03ae6..c6049bd 100644 --- a/rendercv/rendering.py +++ b/rendercv/rendering.py @@ -264,7 +264,7 @@ def read_input_file(file_path: str) -> RenderCVDataModel: return data -def render_template(data: RenderCVDataModel, output_path: str = None): +def render_template(data: RenderCVDataModel, output_path: str = None) -> str: """Render the template using the given data. Args: diff --git a/tests/test_rendering.py b/tests/test_rendering.py index 07917da..2aa59b7 100644 --- a/tests/test_rendering.py +++ b/tests/test_rendering.py @@ -405,8 +405,10 @@ class TestDataModel(unittest.TestCase): os.path.dirname(__file__), "reference_files", "John_Doe_CV.tex" ) - rendering.run_latex(latex_file_path) - + pdf_file = rendering.run_latex(latex_file_path) + + # Check if the output file exists: + self.assertTrue(os.path.exists(pdf_file)) if __name__ == "__main__": unittest.main()