mirror of https://github.com/eyhc1/rendercv.git
update run_latex test
This commit is contained in:
parent
5c7f2e684f
commit
595212cd97
|
@ -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:
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue