diff --git a/rendercv/rendering.py b/rendercv/rendering.py index c6049bd..2a1d866 100644 --- a/rendercv/rendering.py +++ b/rendercv/rendering.py @@ -338,7 +338,7 @@ def render_template(data: RenderCVDataModel, output_path: str = None) -> str: end_time = time.time() time_taken = end_time - start_time - logger.info(f"Rendering the LaTeX file has finished in {time_taken:.2f} s.") + logger.info(f"Rendering the LaTeX file ({output_file_path}) has finished in {time_taken:.2f} s.") return output_file_path @@ -395,9 +395,7 @@ def run_latex(latex_file_path): end_time = time.time() time_taken = end_time - start_time logger.info( - f"Running TinyTeX to generate the PDF has finished in {time_taken:.2f} s." + f"Running TinyTeX to generate the PDF ({output_file_path}) has finished in {time_taken:.2f} s." ) - return os.path.join( - os.path.dirname(latex_file_path), latex_file.replace(".tex", ".pdf") - ) + return output_file_path diff --git a/tests/reference_files/John_Doe_CV.tex b/tests/reference_files/John_Doe_CV.tex index 425334f..47f4c32 100644 --- a/tests/reference_files/John_Doe_CV.tex +++ b/tests/reference_files/John_Doe_CV.tex @@ -101,7 +101,7 @@ \LenToUnit{\paperwidth-1.35 cm}, \LenToUnit{\paperheight-0.675 cm} ){\vtop{{\null}\makebox[0pt][c]{ - \small\color{gray}\emph{Last updated on REPLACE_THIS_WITH_TODAY} \hspace{\widthof{Last updated on REPLACE_THIS_WITH_TODAY}} + \small\color{gray}\emph{Last updated on REPLACETHISWITHTODAY} \hspace{\widthof{Last updated on REPLACETHISWITHTODAY}} }}}% }% }% diff --git a/tests/reference_files/fonts/EBGaramond-Bold.ttf b/tests/reference_files/fonts/EBGaramond-Bold.ttf new file mode 100644 index 0000000..b73dee0 Binary files /dev/null and b/tests/reference_files/fonts/EBGaramond-Bold.ttf differ diff --git a/tests/reference_files/fonts/EBGaramond-BoldItalic.ttf b/tests/reference_files/fonts/EBGaramond-BoldItalic.ttf new file mode 100644 index 0000000..852be7c Binary files /dev/null and b/tests/reference_files/fonts/EBGaramond-BoldItalic.ttf differ diff --git a/tests/reference_files/fonts/EBGaramond-Italic.ttf b/tests/reference_files/fonts/EBGaramond-Italic.ttf new file mode 100644 index 0000000..0f76a8e Binary files /dev/null and b/tests/reference_files/fonts/EBGaramond-Italic.ttf differ diff --git a/tests/reference_files/fonts/EBGaramond-Regular.ttf b/tests/reference_files/fonts/EBGaramond-Regular.ttf new file mode 100644 index 0000000..d3d6f3f Binary files /dev/null and b/tests/reference_files/fonts/EBGaramond-Regular.ttf differ diff --git a/tests/test_rendering.py b/tests/test_rendering.py index 2aa59b7..80408b6 100644 --- a/tests/test_rendering.py +++ b/tests/test_rendering.py @@ -377,7 +377,7 @@ class TestDataModel(unittest.TestCase): with open(reference_file_path, "r") as file: reference = file.read() reference = reference.replace( - "REPLACE_THIS_WITH_TODAY", rendering.get_today() + "REPLACETHISWITHTODAY", rendering.get_today() ) self.assertEqual(output, reference)