diff --git a/tests/test_data_models.py b/tests/test_data_models.py index a8c335b..7f65ea5 100644 --- a/tests/test_data_models.py +++ b/tests/test_data_models.py @@ -65,8 +65,8 @@ def test_format_date(date, expected_date_string): [ ("cv.phone", "+905555555555"), ("cv.email", "test@example.com"), - ("cv.sections.your_education_section.0.degree", "PhD"), - ("cv.sections.your_education_section.1.highlights.1", "Did this."), + ("cv.sections.education.0.degree", "PhD"), + ("cv.sections.education.0.highlights.0", "Did this."), ("cv.sections.this_is_a_new_section", '["This is a text entry."]'), ("design.page_size", "a4paper"), ("design", '{"theme": "engineeringresumes"}'), @@ -106,7 +106,7 @@ def test_set_or_update_a_value_invalid_keys(rendercv_data_model, key, value): [ ("cv.phone", "+9999995555555555"), ("cv.email", "notanemail***"), - ("cv.sections.your_education_section.0.highlights", "this is not a list"), + ("cv.sections.education.0.highlights", "this is not a list"), ("design.page_size", "invalid_page_size"), ], ) diff --git a/tests/testdata/test_generate_latex_file/classic_empty.tex b/tests/testdata/test_generate_latex_file/classic_empty.tex index d18be2f..8149027 100644 --- a/tests/testdata/test_generate_latex_file/classic_empty.tex +++ b/tests/testdata/test_generate_latex_file/classic_empty.tex @@ -97,6 +97,18 @@ \end{itemize} } % new environment for highlights +\newenvironment{highlightsforbulletentries}{ + \begin{itemize}[ + topsep=0.10 cm, + parsep=0.10 cm, + partopsep=0pt, + itemsep=0pt, + leftmargin=10pt + ] +}{ + \end{itemize} +} % new environment for highlights for bullet entries + \newenvironment{onecolentry}{ \begin{adjustwidth}{ @@ -161,6 +173,8 @@ \section{Test} + + \begin{onecolentry} test diff --git a/tests/testdata/test_generate_latex_file/classic_filled.tex b/tests/testdata/test_generate_latex_file/classic_filled.tex index a0a265f..dade8fe 100644 --- a/tests/testdata/test_generate_latex_file/classic_filled.tex +++ b/tests/testdata/test_generate_latex_file/classic_filled.tex @@ -97,6 +97,18 @@ \end{itemize} } % new environment for highlights +\newenvironment{highlightsforbulletentries}{ + \begin{itemize}[ + topsep=0.10 cm, + parsep=0.10 cm, + partopsep=0pt, + itemsep=0pt, + leftmargin=10pt + ] +}{ + \end{itemize} +} % new environment for highlights for bullet entries + \newenvironment{onecolentry}{ \begin{adjustwidth}{ @@ -191,6 +203,8 @@ \section{Text Entries} + + \begin{onecolentry} This is a \textit{TextEntry}. It is only a text and can be useful for sections like \textbf{Summary}. To showcase the TextEntry completely, this sentence is added, but it doesn't contain any information. @@ -212,21 +226,22 @@ \section{Bullet Entries} - - \begin{onecolentry} - \textbullet \hspace{3pt} This is a bullet entry. - \end{onecolentry} - - \vspace{0.2 cm} - - \begin{onecolentry} - \textbullet \hspace{3pt} This is a bullet entry. - \end{onecolentry} + \begin{onecolentry} + \begin{highlightsforbulletentries} - + \item This is a bullet entry. + + \item This is a bullet entry. + + + \end{highlightsforbulletentries} + \end{onecolentry} + \section{Publication Entries} + + \begin{samepage} \begin{onecolentry} @@ -346,6 +361,8 @@ \section{Experience Entries} + + \begin{onecolentry} \textbf{Some \textnormal{Company}}, Software Engineer @@ -725,6 +742,8 @@ \section{Education Entries} + + \begin{threecolentry}{\textbf{}}{ @@ -1424,6 +1443,8 @@ \section{Normal Entries} + + \begin{onecolentry} \textbf{My Project} @@ -1803,6 +1824,8 @@ \section{One Line Entries} + + \begin{onecolentry} \textbf{Pro\textnormal{gram}ming:} Python, C++, JavaScript, MATLAB diff --git a/tests/testdata/test_generate_latex_file/engineeringresumes_empty.tex b/tests/testdata/test_generate_latex_file/engineeringresumes_empty.tex index 8665729..625168c 100644 --- a/tests/testdata/test_generate_latex_file/engineeringresumes_empty.tex +++ b/tests/testdata/test_generate_latex_file/engineeringresumes_empty.tex @@ -82,6 +82,18 @@ } % new environment for highlights +\newenvironment{highlightsforbulletentries}{ + \begin{itemize}[ + topsep=0.10 cm, + parsep=0.10 cm, + partopsep=0pt, + itemsep=0pt, + leftmargin=10pt + ] +}{ + \end{itemize} +} % new environment for highlights for bullet entries + \newenvironment{onecolentry}{ \begin{adjustwidth}{ 0 cm + 0.00001 cm @@ -150,6 +162,8 @@ \section{Test} + + \begin{onecolentry} test diff --git a/tests/testdata/test_generate_latex_file/engineeringresumes_filled.tex b/tests/testdata/test_generate_latex_file/engineeringresumes_filled.tex index 97f3f3b..a130112 100644 --- a/tests/testdata/test_generate_latex_file/engineeringresumes_filled.tex +++ b/tests/testdata/test_generate_latex_file/engineeringresumes_filled.tex @@ -82,6 +82,18 @@ } % new environment for highlights +\newenvironment{highlightsforbulletentries}{ + \begin{itemize}[ + topsep=0.10 cm, + parsep=0.10 cm, + partopsep=0pt, + itemsep=0pt, + leftmargin=10pt + ] +}{ + \end{itemize} +} % new environment for highlights for bullet entries + \newenvironment{onecolentry}{ \begin{adjustwidth}{ 0 cm + 0.00001 cm @@ -198,6 +210,8 @@ \section{Text Entries} + + \begin{onecolentry} This is a \textit{TextEntry}. It is only a text and can be useful for sections like \textbf{Summary}. To showcase the TextEntry completely, this sentence is added, but it doesn't contain any information. @@ -219,21 +233,22 @@ \section{Bullet Entries} - - \begin{onecolentry} - \textbullet \hspace{3pt} This is a bullet entry. - \end{onecolentry} - - \vspace{0.2 cm} - - \begin{onecolentry} - \textbullet \hspace{3pt} This is a bullet entry. - \end{onecolentry} + \begin{onecolentry} + \begin{highlightsforbulletentries} - + \item This is a bullet entry. + + \item This is a bullet entry. + + + \end{highlightsforbulletentries} + \end{onecolentry} + \section{Publication Entries} + + \begin{samepage} \begin{onecolentry} @@ -349,6 +364,8 @@ \section{Experience Entries} + + \begin{onecolentry} \textbf{Software Engineer}, Some \textbf{Company}\end{onecolentry} @@ -744,6 +761,8 @@ \section{Education Entries} + + \begin{onecolentry} \textbf{Boğaziçi University}, Mechanical Engineering\end{onecolentry} @@ -1531,6 +1550,8 @@ \section{Normal Entries} + + \begin{onecolentry} \textbf{My Project}\end{onecolentry} @@ -1926,6 +1947,8 @@ \section{One Line Entries} + + \begin{onecolentry} \textbf{Pro\textnormal{gram}ming:} Python, C++, JavaScript, MATLAB diff --git a/tests/testdata/test_generate_latex_file/sb2nov_empty.tex b/tests/testdata/test_generate_latex_file/sb2nov_empty.tex index 12b20dd..5d846d7 100644 --- a/tests/testdata/test_generate_latex_file/sb2nov_empty.tex +++ b/tests/testdata/test_generate_latex_file/sb2nov_empty.tex @@ -86,6 +86,18 @@ \end{itemize} } % new environment for highlights +\newenvironment{highlightsforbulletentries}{ + \begin{itemize}[ + topsep=0.10 cm, + parsep=0.10 cm, + partopsep=0pt, + itemsep=0pt, + leftmargin=10pt + ] +}{ + \end{itemize} +} % new environment for highlights for bullet entries + \newenvironment{onecolentry}{ \begin{adjustwidth}{ @@ -138,6 +150,8 @@ \section{Test} + + \begin{onecolentry} test diff --git a/tests/testdata/test_generate_latex_file/sb2nov_filled.tex b/tests/testdata/test_generate_latex_file/sb2nov_filled.tex index f7d6345..870ecc5 100644 --- a/tests/testdata/test_generate_latex_file/sb2nov_filled.tex +++ b/tests/testdata/test_generate_latex_file/sb2nov_filled.tex @@ -86,6 +86,18 @@ \end{itemize} } % new environment for highlights +\newenvironment{highlightsforbulletentries}{ + \begin{itemize}[ + topsep=0.10 cm, + parsep=0.10 cm, + partopsep=0pt, + itemsep=0pt, + leftmargin=10pt + ] +}{ + \end{itemize} +} % new environment for highlights for bullet entries + \newenvironment{onecolentry}{ \begin{adjustwidth}{ @@ -167,6 +179,8 @@ \section{Text Entries} + + \begin{onecolentry} This is a \textit{TextEntry}. It is only a text and can be useful for sections like \textbf{Summary}. To showcase the TextEntry completely, this sentence is added, but it doesn't contain any information. @@ -188,21 +202,22 @@ \section{Bullet Entries} - - \begin{onecolentry} - $\circ$ This is a bullet entry. - \end{onecolentry} - - \vspace{0.2 cm} - - \begin{onecolentry} - $\circ$ This is a bullet entry. - \end{onecolentry} + \begin{onecolentry} + \begin{highlightsforbulletentries} - + \item This is a bullet entry. + + \item This is a bullet entry. + + + \end{highlightsforbulletentries} + \end{onecolentry} + \section{Publication Entries} + + \begin{samepage} \begin{onecolentry} @@ -318,6 +333,8 @@ \section{Experience Entries} + + \begin{onecolentry} \textbf{Software Engineer} @@ -843,6 +860,8 @@ \section{Education Entries} + + \begin{onecolentry} \textbf{Boğaziçi University} @@ -1890,6 +1909,8 @@ \section{Normal Entries} + + \begin{onecolentry} \textbf{My Project} @@ -2351,6 +2372,8 @@ \section{One Line Entries} + + \begin{onecolentry} \textbf{Pro\textnormal{gram}ming:} Python, C++, JavaScript, MATLAB diff --git a/tests/testdata/test_generate_latex_file_and_copy_theme_files/classic_empty/None_CV.tex b/tests/testdata/test_generate_latex_file_and_copy_theme_files/classic_empty/None_CV.tex index d18be2f..8149027 100644 --- a/tests/testdata/test_generate_latex_file_and_copy_theme_files/classic_empty/None_CV.tex +++ b/tests/testdata/test_generate_latex_file_and_copy_theme_files/classic_empty/None_CV.tex @@ -97,6 +97,18 @@ \end{itemize} } % new environment for highlights +\newenvironment{highlightsforbulletentries}{ + \begin{itemize}[ + topsep=0.10 cm, + parsep=0.10 cm, + partopsep=0pt, + itemsep=0pt, + leftmargin=10pt + ] +}{ + \end{itemize} +} % new environment for highlights for bullet entries + \newenvironment{onecolentry}{ \begin{adjustwidth}{ @@ -161,6 +173,8 @@ \section{Test} + + \begin{onecolentry} test diff --git a/tests/testdata/test_generate_latex_file_and_copy_theme_files/classic_filled/John_Doe_CV.tex b/tests/testdata/test_generate_latex_file_and_copy_theme_files/classic_filled/John_Doe_CV.tex index a0a265f..dade8fe 100644 --- a/tests/testdata/test_generate_latex_file_and_copy_theme_files/classic_filled/John_Doe_CV.tex +++ b/tests/testdata/test_generate_latex_file_and_copy_theme_files/classic_filled/John_Doe_CV.tex @@ -97,6 +97,18 @@ \end{itemize} } % new environment for highlights +\newenvironment{highlightsforbulletentries}{ + \begin{itemize}[ + topsep=0.10 cm, + parsep=0.10 cm, + partopsep=0pt, + itemsep=0pt, + leftmargin=10pt + ] +}{ + \end{itemize} +} % new environment for highlights for bullet entries + \newenvironment{onecolentry}{ \begin{adjustwidth}{ @@ -191,6 +203,8 @@ \section{Text Entries} + + \begin{onecolentry} This is a \textit{TextEntry}. It is only a text and can be useful for sections like \textbf{Summary}. To showcase the TextEntry completely, this sentence is added, but it doesn't contain any information. @@ -212,21 +226,22 @@ \section{Bullet Entries} - - \begin{onecolentry} - \textbullet \hspace{3pt} This is a bullet entry. - \end{onecolentry} - - \vspace{0.2 cm} - - \begin{onecolentry} - \textbullet \hspace{3pt} This is a bullet entry. - \end{onecolentry} + \begin{onecolentry} + \begin{highlightsforbulletentries} - + \item This is a bullet entry. + + \item This is a bullet entry. + + + \end{highlightsforbulletentries} + \end{onecolentry} + \section{Publication Entries} + + \begin{samepage} \begin{onecolentry} @@ -346,6 +361,8 @@ \section{Experience Entries} + + \begin{onecolentry} \textbf{Some \textnormal{Company}}, Software Engineer @@ -725,6 +742,8 @@ \section{Education Entries} + + \begin{threecolentry}{\textbf{}}{ @@ -1424,6 +1443,8 @@ \section{Normal Entries} + + \begin{onecolentry} \textbf{My Project} @@ -1803,6 +1824,8 @@ \section{One Line Entries} + + \begin{onecolentry} \textbf{Pro\textnormal{gram}ming:} Python, C++, JavaScript, MATLAB diff --git a/tests/testdata/test_generate_latex_file_and_copy_theme_files/engineeringresumes_empty/None_CV.tex b/tests/testdata/test_generate_latex_file_and_copy_theme_files/engineeringresumes_empty/None_CV.tex index 8665729..625168c 100644 --- a/tests/testdata/test_generate_latex_file_and_copy_theme_files/engineeringresumes_empty/None_CV.tex +++ b/tests/testdata/test_generate_latex_file_and_copy_theme_files/engineeringresumes_empty/None_CV.tex @@ -82,6 +82,18 @@ } % new environment for highlights +\newenvironment{highlightsforbulletentries}{ + \begin{itemize}[ + topsep=0.10 cm, + parsep=0.10 cm, + partopsep=0pt, + itemsep=0pt, + leftmargin=10pt + ] +}{ + \end{itemize} +} % new environment for highlights for bullet entries + \newenvironment{onecolentry}{ \begin{adjustwidth}{ 0 cm + 0.00001 cm @@ -150,6 +162,8 @@ \section{Test} + + \begin{onecolentry} test diff --git a/tests/testdata/test_generate_latex_file_and_copy_theme_files/engineeringresumes_filled/John_Doe_CV.tex b/tests/testdata/test_generate_latex_file_and_copy_theme_files/engineeringresumes_filled/John_Doe_CV.tex index 97f3f3b..a130112 100644 --- a/tests/testdata/test_generate_latex_file_and_copy_theme_files/engineeringresumes_filled/John_Doe_CV.tex +++ b/tests/testdata/test_generate_latex_file_and_copy_theme_files/engineeringresumes_filled/John_Doe_CV.tex @@ -82,6 +82,18 @@ } % new environment for highlights +\newenvironment{highlightsforbulletentries}{ + \begin{itemize}[ + topsep=0.10 cm, + parsep=0.10 cm, + partopsep=0pt, + itemsep=0pt, + leftmargin=10pt + ] +}{ + \end{itemize} +} % new environment for highlights for bullet entries + \newenvironment{onecolentry}{ \begin{adjustwidth}{ 0 cm + 0.00001 cm @@ -198,6 +210,8 @@ \section{Text Entries} + + \begin{onecolentry} This is a \textit{TextEntry}. It is only a text and can be useful for sections like \textbf{Summary}. To showcase the TextEntry completely, this sentence is added, but it doesn't contain any information. @@ -219,21 +233,22 @@ \section{Bullet Entries} - - \begin{onecolentry} - \textbullet \hspace{3pt} This is a bullet entry. - \end{onecolentry} - - \vspace{0.2 cm} - - \begin{onecolentry} - \textbullet \hspace{3pt} This is a bullet entry. - \end{onecolentry} + \begin{onecolentry} + \begin{highlightsforbulletentries} - + \item This is a bullet entry. + + \item This is a bullet entry. + + + \end{highlightsforbulletentries} + \end{onecolentry} + \section{Publication Entries} + + \begin{samepage} \begin{onecolentry} @@ -349,6 +364,8 @@ \section{Experience Entries} + + \begin{onecolentry} \textbf{Software Engineer}, Some \textbf{Company}\end{onecolentry} @@ -744,6 +761,8 @@ \section{Education Entries} + + \begin{onecolentry} \textbf{Boğaziçi University}, Mechanical Engineering\end{onecolentry} @@ -1531,6 +1550,8 @@ \section{Normal Entries} + + \begin{onecolentry} \textbf{My Project}\end{onecolentry} @@ -1926,6 +1947,8 @@ \section{One Line Entries} + + \begin{onecolentry} \textbf{Pro\textnormal{gram}ming:} Python, C++, JavaScript, MATLAB diff --git a/tests/testdata/test_generate_latex_file_and_copy_theme_files/sb2nov_empty/None_CV.tex b/tests/testdata/test_generate_latex_file_and_copy_theme_files/sb2nov_empty/None_CV.tex index 12b20dd..5d846d7 100644 --- a/tests/testdata/test_generate_latex_file_and_copy_theme_files/sb2nov_empty/None_CV.tex +++ b/tests/testdata/test_generate_latex_file_and_copy_theme_files/sb2nov_empty/None_CV.tex @@ -86,6 +86,18 @@ \end{itemize} } % new environment for highlights +\newenvironment{highlightsforbulletentries}{ + \begin{itemize}[ + topsep=0.10 cm, + parsep=0.10 cm, + partopsep=0pt, + itemsep=0pt, + leftmargin=10pt + ] +}{ + \end{itemize} +} % new environment for highlights for bullet entries + \newenvironment{onecolentry}{ \begin{adjustwidth}{ @@ -138,6 +150,8 @@ \section{Test} + + \begin{onecolentry} test diff --git a/tests/testdata/test_generate_latex_file_and_copy_theme_files/sb2nov_filled/John_Doe_CV.tex b/tests/testdata/test_generate_latex_file_and_copy_theme_files/sb2nov_filled/John_Doe_CV.tex index f7d6345..870ecc5 100644 --- a/tests/testdata/test_generate_latex_file_and_copy_theme_files/sb2nov_filled/John_Doe_CV.tex +++ b/tests/testdata/test_generate_latex_file_and_copy_theme_files/sb2nov_filled/John_Doe_CV.tex @@ -86,6 +86,18 @@ \end{itemize} } % new environment for highlights +\newenvironment{highlightsforbulletentries}{ + \begin{itemize}[ + topsep=0.10 cm, + parsep=0.10 cm, + partopsep=0pt, + itemsep=0pt, + leftmargin=10pt + ] +}{ + \end{itemize} +} % new environment for highlights for bullet entries + \newenvironment{onecolentry}{ \begin{adjustwidth}{ @@ -167,6 +179,8 @@ \section{Text Entries} + + \begin{onecolentry} This is a \textit{TextEntry}. It is only a text and can be useful for sections like \textbf{Summary}. To showcase the TextEntry completely, this sentence is added, but it doesn't contain any information. @@ -188,21 +202,22 @@ \section{Bullet Entries} - - \begin{onecolentry} - $\circ$ This is a bullet entry. - \end{onecolentry} - - \vspace{0.2 cm} - - \begin{onecolentry} - $\circ$ This is a bullet entry. - \end{onecolentry} + \begin{onecolentry} + \begin{highlightsforbulletentries} - + \item This is a bullet entry. + + \item This is a bullet entry. + + + \end{highlightsforbulletentries} + \end{onecolentry} + \section{Publication Entries} + + \begin{samepage} \begin{onecolentry} @@ -318,6 +333,8 @@ \section{Experience Entries} + + \begin{onecolentry} \textbf{Software Engineer} @@ -843,6 +860,8 @@ \section{Education Entries} + + \begin{onecolentry} \textbf{Boğaziçi University} @@ -1890,6 +1909,8 @@ \section{Normal Entries} + + \begin{onecolentry} \textbf{My Project} @@ -2351,6 +2372,8 @@ \section{One Line Entries} + + \begin{onecolentry} \textbf{Pro\textnormal{gram}ming:} Python, C++, JavaScript, MATLAB diff --git a/tests/testdata/test_latex_to_pdf/classic_empty.pdf b/tests/testdata/test_latex_to_pdf/classic_empty.pdf index 56f2320..fbbc6a1 100644 Binary files a/tests/testdata/test_latex_to_pdf/classic_empty.pdf and b/tests/testdata/test_latex_to_pdf/classic_empty.pdf differ diff --git a/tests/testdata/test_latex_to_pdf/classic_filled.pdf b/tests/testdata/test_latex_to_pdf/classic_filled.pdf index e44d0a3..84487c8 100644 Binary files a/tests/testdata/test_latex_to_pdf/classic_filled.pdf and b/tests/testdata/test_latex_to_pdf/classic_filled.pdf differ diff --git a/tests/testdata/test_latex_to_pdf/engineeringresumes_empty.pdf b/tests/testdata/test_latex_to_pdf/engineeringresumes_empty.pdf index ef0807d..16030b6 100644 Binary files a/tests/testdata/test_latex_to_pdf/engineeringresumes_empty.pdf and b/tests/testdata/test_latex_to_pdf/engineeringresumes_empty.pdf differ diff --git a/tests/testdata/test_latex_to_pdf/engineeringresumes_filled.pdf b/tests/testdata/test_latex_to_pdf/engineeringresumes_filled.pdf index 122228e..55d0e2f 100644 Binary files a/tests/testdata/test_latex_to_pdf/engineeringresumes_filled.pdf and b/tests/testdata/test_latex_to_pdf/engineeringresumes_filled.pdf differ diff --git a/tests/testdata/test_latex_to_pdf/moderncv_empty.pdf b/tests/testdata/test_latex_to_pdf/moderncv_empty.pdf index 6eddae4..9d5358d 100644 Binary files a/tests/testdata/test_latex_to_pdf/moderncv_empty.pdf and b/tests/testdata/test_latex_to_pdf/moderncv_empty.pdf differ diff --git a/tests/testdata/test_latex_to_pdf/moderncv_filled.pdf b/tests/testdata/test_latex_to_pdf/moderncv_filled.pdf index 38a2720..31e2181 100644 Binary files a/tests/testdata/test_latex_to_pdf/moderncv_filled.pdf and b/tests/testdata/test_latex_to_pdf/moderncv_filled.pdf differ diff --git a/tests/testdata/test_latex_to_pdf/sb2nov_empty.pdf b/tests/testdata/test_latex_to_pdf/sb2nov_empty.pdf index 60a72e4..7190d68 100644 Binary files a/tests/testdata/test_latex_to_pdf/sb2nov_empty.pdf and b/tests/testdata/test_latex_to_pdf/sb2nov_empty.pdf differ diff --git a/tests/testdata/test_latex_to_pdf/sb2nov_filled.pdf b/tests/testdata/test_latex_to_pdf/sb2nov_filled.pdf index 03961f6..4f96353 100644 Binary files a/tests/testdata/test_latex_to_pdf/sb2nov_filled.pdf and b/tests/testdata/test_latex_to_pdf/sb2nov_filled.pdf differ diff --git a/tests/testdata/test_pdf_to_pngs/pngs/classic_filled_1.png b/tests/testdata/test_pdf_to_pngs/pngs/classic_filled_1.png index ea0a7a9..4e0c454 100644 Binary files a/tests/testdata/test_pdf_to_pngs/pngs/classic_filled_1.png and b/tests/testdata/test_pdf_to_pngs/pngs/classic_filled_1.png differ