diff --git a/tests/auxiliary_files/test_generate_latex_file/sb2nov_empty/None_CV.tex b/tests/auxiliary_files/test_generate_latex_file/sb2nov_empty/None_CV.tex index 3043f2d..ec98ec0 100644 --- a/tests/auxiliary_files/test_generate_latex_file/sb2nov_empty/None_CV.tex +++ b/tests/auxiliary_files/test_generate_latex_file/sb2nov_empty/None_CV.tex @@ -22,7 +22,11 @@ \usepackage{setspace} \usepackage{xcolor} \usepackage{enumitem} -\usepackage[hidelinks]{hyperref} +\usepackage[ + hidelinks, + pdftitle={None's CV}, + pdfauthor={None} +]{hyperref} \usepackage{fancyhdr} \usepackage[english]{babel} \usepackage{tabularx} diff --git a/tests/auxiliary_files/test_generate_latex_file/sb2nov_filled/John_Doe_CV.tex b/tests/auxiliary_files/test_generate_latex_file/sb2nov_filled/John_Doe_CV.tex index 070d857..4c4eecd 100644 --- a/tests/auxiliary_files/test_generate_latex_file/sb2nov_filled/John_Doe_CV.tex +++ b/tests/auxiliary_files/test_generate_latex_file/sb2nov_filled/John_Doe_CV.tex @@ -22,7 +22,11 @@ \usepackage{setspace} \usepackage{xcolor} \usepackage{enumitem} -\usepackage[hidelinks]{hyperref} +\usepackage[ + hidelinks, + pdftitle={John Doe's CV}, + pdfauthor={John Doe} +]{hyperref} \usepackage{fancyhdr} \usepackage[english]{babel} \usepackage{tabularx} diff --git a/tests/auxiliary_files/test_generate_latex_file_and_copy_theme_files/sb2nov_empty/None_CV.tex b/tests/auxiliary_files/test_generate_latex_file_and_copy_theme_files/sb2nov_empty/None_CV.tex index 3043f2d..ec98ec0 100644 --- a/tests/auxiliary_files/test_generate_latex_file_and_copy_theme_files/sb2nov_empty/None_CV.tex +++ b/tests/auxiliary_files/test_generate_latex_file_and_copy_theme_files/sb2nov_empty/None_CV.tex @@ -22,7 +22,11 @@ \usepackage{setspace} \usepackage{xcolor} \usepackage{enumitem} -\usepackage[hidelinks]{hyperref} +\usepackage[ + hidelinks, + pdftitle={None's CV}, + pdfauthor={None} +]{hyperref} \usepackage{fancyhdr} \usepackage[english]{babel} \usepackage{tabularx} diff --git a/tests/auxiliary_files/test_generate_latex_file_and_copy_theme_files/sb2nov_filled/John_Doe_CV.tex b/tests/auxiliary_files/test_generate_latex_file_and_copy_theme_files/sb2nov_filled/John_Doe_CV.tex index 070d857..4c4eecd 100644 --- a/tests/auxiliary_files/test_generate_latex_file_and_copy_theme_files/sb2nov_filled/John_Doe_CV.tex +++ b/tests/auxiliary_files/test_generate_latex_file_and_copy_theme_files/sb2nov_filled/John_Doe_CV.tex @@ -22,7 +22,11 @@ \usepackage{setspace} \usepackage{xcolor} \usepackage{enumitem} -\usepackage[hidelinks]{hyperref} +\usepackage[ + hidelinks, + pdftitle={John Doe's CV}, + pdfauthor={John Doe} +]{hyperref} \usepackage{fancyhdr} \usepackage[english]{babel} \usepackage{tabularx} diff --git a/tests/auxiliary_files/test_latex_to_pdf/classic_empty/None_CV.pdf b/tests/auxiliary_files/test_latex_to_pdf/classic_empty/None_CV.pdf index b7a3d8a..fba6444 100644 Binary files a/tests/auxiliary_files/test_latex_to_pdf/classic_empty/None_CV.pdf and b/tests/auxiliary_files/test_latex_to_pdf/classic_empty/None_CV.pdf differ diff --git a/tests/auxiliary_files/test_latex_to_pdf/classic_filled/John_Doe_CV.pdf b/tests/auxiliary_files/test_latex_to_pdf/classic_filled/John_Doe_CV.pdf index 69d6cc4..1638acc 100644 Binary files a/tests/auxiliary_files/test_latex_to_pdf/classic_filled/John_Doe_CV.pdf and b/tests/auxiliary_files/test_latex_to_pdf/classic_filled/John_Doe_CV.pdf differ diff --git a/tests/auxiliary_files/test_latex_to_pdf/moderncv_empty/None_CV.pdf b/tests/auxiliary_files/test_latex_to_pdf/moderncv_empty/None_CV.pdf index 0d168f4..ea32247 100644 Binary files a/tests/auxiliary_files/test_latex_to_pdf/moderncv_empty/None_CV.pdf and b/tests/auxiliary_files/test_latex_to_pdf/moderncv_empty/None_CV.pdf differ diff --git a/tests/auxiliary_files/test_latex_to_pdf/moderncv_filled/John_Doe_CV.pdf b/tests/auxiliary_files/test_latex_to_pdf/moderncv_filled/John_Doe_CV.pdf index 2bd89c4..4b31186 100644 Binary files a/tests/auxiliary_files/test_latex_to_pdf/moderncv_filled/John_Doe_CV.pdf and b/tests/auxiliary_files/test_latex_to_pdf/moderncv_filled/John_Doe_CV.pdf differ diff --git a/tests/auxiliary_files/test_latex_to_pdf/sb2nov_empty/None_CV.pdf b/tests/auxiliary_files/test_latex_to_pdf/sb2nov_empty/None_CV.pdf index c331142..759121b 100644 Binary files a/tests/auxiliary_files/test_latex_to_pdf/sb2nov_empty/None_CV.pdf and b/tests/auxiliary_files/test_latex_to_pdf/sb2nov_empty/None_CV.pdf differ diff --git a/tests/auxiliary_files/test_latex_to_pdf/sb2nov_filled/John_Doe_CV.pdf b/tests/auxiliary_files/test_latex_to_pdf/sb2nov_filled/John_Doe_CV.pdf index 937fa8a..8d66a5f 100644 Binary files a/tests/auxiliary_files/test_latex_to_pdf/sb2nov_filled/John_Doe_CV.pdf and b/tests/auxiliary_files/test_latex_to_pdf/sb2nov_filled/John_Doe_CV.pdf differ diff --git a/tests/conftest.py b/tests/conftest.py index e9fa46a..6840326 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -6,6 +6,13 @@ import pytest from rendercv import data_models as dm import rendercv.renderer as r +update_auxiliary_files = False + +folder_name_dictionary = { + "rendercv_empty_curriculum_vitae_data_model": "empty", + "rendercv_filled_curriculum_vitae_data_model": "filled", +} + @pytest.fixture def publication_entry() -> dict[str, str | list[str]]: diff --git a/tests/test_data_models.py b/tests/test_data_models.py index f7039f0..ffcf59d 100644 --- a/tests/test_data_models.py +++ b/tests/test_data_models.py @@ -11,7 +11,7 @@ import ruamel.yaml from rendercv import data_models as dm -from .test_renderer import update_auxiliary_files +from .conftest import update_auxiliary_files @pytest.mark.parametrize( diff --git a/tests/test_renderer.py b/tests/test_renderer.py index 359bbb5..70c3689 100644 --- a/tests/test_renderer.py +++ b/tests/test_renderer.py @@ -12,13 +12,7 @@ import pypdf from rendercv import renderer as r from rendercv import data_models as dm - -update_auxiliary_files = False - -folder_name_dictionary = { - "rendercv_empty_curriculum_vitae_data_model": "empty", - "rendercv_filled_curriculum_vitae_data_model": "filled", -} +from .conftest import update_auxiliary_files, folder_name_dictionary def test_latex_file_class(tmp_path, rendercv_data_model, jinja2_environment):