mirror of
https://github.com/rendercv/rendercv.git
synced 2026-10-25 05:38:49 -04:00
update run_latex test
This commit is contained in:
1 parent
5c7f2e684f
commit
595212cd97
2 files changed
+5
-3
No files matched your search
@@ -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()
|
||||
Reference in new issue
Block a user