From 97ec7512536aea14e2f8ccc8de729cbb3fb79d4d Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Fri, 23 Feb 2024 19:10:25 +0100 Subject: [PATCH] update tests --- .../sb2nov_empty/None_CV.tex | 6 +++++- .../sb2nov_filled/John_Doe_CV.tex | 6 +++++- .../sb2nov_empty/None_CV.tex | 6 +++++- .../sb2nov_filled/John_Doe_CV.tex | 6 +++++- .../classic_empty/None_CV.pdf | Bin 301229 -> 301229 bytes .../classic_filled/John_Doe_CV.pdf | Bin 501834 -> 501834 bytes .../moderncv_empty/None_CV.pdf | Bin 38192 -> 38192 bytes .../moderncv_filled/John_Doe_CV.pdf | Bin 294571 -> 294571 bytes .../sb2nov_empty/None_CV.pdf | Bin 31716 -> 31801 bytes .../sb2nov_filled/John_Doe_CV.pdf | Bin 164400 -> 164529 bytes tests/conftest.py | 7 +++++++ tests/test_data_models.py | 2 +- tests/test_renderer.py | 8 +------- 13 files changed, 29 insertions(+), 12 deletions(-) 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 b7a3d8ab2cf5cd9eb0bac2a94b9b0575e5274f91..fba64444f1229b8062253625fe84cb123ab62e11 100644 GIT binary patch delta 117 zcmZ3xQE2T(p@tU57N!>FEi7dd*^Lb?4J-@{rq@nnk%4ixFPO;koz>aQ#nr^w5r|F9 k%uEd&T`b%jE!>=(4b4o=jg5^QjqDU`2q~FFEi7dd*$s>gj4X`Jr`Jwok%4ixFPO;koz>aN!qCXs#Ldyn l(aFui(9GG<+}z2<#njNu94O;zVQQyfLrBT=Thm!C0|3F7M2#)7Pc+y0@JmO4J{2U3{A8R4Al(`)HS*Eee+XX5=&AQ zG+eBV42(<+jEta4wp&eS_v3fAFmiEpbFp-CF>`h`HZ?OgbaZlZHgGmIv2-+db2D(Y PQ?MbVWc%r5?DdQQZh|Im delta 146 zcmX?gLGIKAxrP?T7N!>F7M2#)7Pc+y0@Jk&j0}t{OpUY+4Al(`)HS*Eee+XX5=&AQ zG+eBJQYHpQKoYEEyVZ1dKYnLRS5qT1LqkhPLqj8D7b9~EGXqCMV-q)X7c&zl7jtJj P1sg(2wx3?cUe5>sI^-o@ 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 0d168f432aa6e3d3c9e8e7f37e81a193be6723b5..ea322475c1efe2bab79d3054b8a886779c98d445 100644 GIT binary patch delta 106 zcmdn6ifIE7HTJO^8(JDz7?@1%=#zo5H?Qt1Wp#FTF|u@XbaF8?a&>lcGcY%?a5XY< Yb~JM{GBq}GHZ`(Supy*ma`Ke30DF)fg8%>k delta 106 zcmdn6ifIE7HTJO^7#SE@m>5m&=#zo5H?Qt1Wp#FPHZ(IbaW-&uF|jZ;advhzaWOYF YH+MF2vUGBGwKTC)upy*ma`Ke30Bw&QZvX%Q 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 2bd89c47ae55b4ee42e86083143536bd2e0d4e02..4b3118646a4882080b329510f83de55f4e8e7274 100644 GIT binary patch delta 135 zcmZ4eS8(-T!G;#b7N!>FEi6J+?8b(c1{Q{v(FEi6J+>;^^#Mi!R%0mM$iS2F6B~Zf0iA7M3pNb_zBIE(Dasa_Re|=B1ZpC>Wa=Pk-piqPbnNmSqwn E0Gpp9IsgCw 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 c331142ca85e7cc87bc96520762df721e48bbf02..759121b1cdd12e64bcea4aecb8240cdd612fa798 100644 GIT binary patch delta 383 zcmaFzopI+6#toJwF)_yGW`Dp)zlBkEXhgLz^4YJP#r`RgNPUd z6CgG)a0U@!lO0QZw2Tcc4J-^SwG9l_fhsk*^nLSFToOxC6*OF|j0}uS42+DRN;YpV zk!1@sb#inxGB-3ZbTqUuGB-6gFm*MvG`BD}cQZ0}bhR+GQ?MbZB$i9xCp9m|NClqKtTDpV)@qc_h&YKKYpfjc6&|T z$?5*zRIlAgc%7|!fB!G$=|{K)xl;2|ic5-86LUeV{G`ces`cHT66@XoCewrAAGU0sr1IBE(cb^ei$rGS zfCc$iD_<|@w$#$uaD+>ht!#3=bC1EXBZcQ;-yT*ke)U+j_}OdkeS4q&HvcUZ{bs}W d#glG_)u)?qWlk2Xk>fHpHQ`cKb@g}S0s!|2Ua$ZF 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 937fa8a15d78a9af7c54667df51d47b4fc4521ab..8d66a5fd04129dd7476843ef77f9697dd0821399 100644 GIT binary patch delta 624 zcmdnc!nLuLtD%K)3zJ=5eT=cW84#Pt7#J9Mfrxw%kpUv|Ktzmz2@o3?xPS<-T&kvi zNM=b+ss@-xBbl`8 zRWEJzb9EGGcsR3pHyBup?{x6s5Yy1m;NV>E=;f zJ2~f#;KWDv{zrtro{Mii)uJ2lL4n&$k)ugb+Dw7PNs+xqfbHP~?$-j06DP1|3$R`k zVBRRe{&50B=LD9M6O@!x>)mEb+gx2Wr+(>O(r8N3XcW|FHPQ&@#9O(>%#Z0y57I; zS4eRF``E9m?QC~T1^ngnv0o8)W%+8wuWtHpm(Q#)Sa!enCr@(b<%qooHQ~puE#7$e z>fiLo4~|>xG4AW{xg7Oi`!@&l-mEMa%l>}%$5Z)h&&?iBXK!MX=dv_5;Zjv~ I^>^a}0DgbsXaE2J delta 496 zcmdnk%C(_|tD%K)3zJ3t#dFdq?3dSY|(+vZd zH0xC_ZS`Xf6li!j^XOd=c>0J>TwR5QTSP>p<%7(YEiD%WcuTJExa8N%b6J@;NAT=8#2* zqh!wko->C{dK&rF5`@GQ`9CdW;9AJhwm`ybL5S*$`UOQR8oX}*E~&m6z`Qkpy*YrN z_X5Y^3oK`~4(h+VDK>SJNBCN;%kS6S3Yj-AcI)atGCN-dY~}YZT~+3@>s8R#{9UiY z_U 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):