tests: update testdata

This commit is contained in:
Sina Atalay 2024-05-19 17:43:10 +03:00
parent ff8f5de20d
commit 339509ea9f
22 changed files with 291 additions and 69 deletions

View File

@ -65,8 +65,8 @@ def test_format_date(date, expected_date_string):
[ [
("cv.phone", "+905555555555"), ("cv.phone", "+905555555555"),
("cv.email", "test@example.com"), ("cv.email", "test@example.com"),
("cv.sections.your_education_section.0.degree", "PhD"), ("cv.sections.education.0.degree", "PhD"),
("cv.sections.your_education_section.1.highlights.1", "Did this."), ("cv.sections.education.0.highlights.0", "Did this."),
("cv.sections.this_is_a_new_section", '["This is a text entry."]'), ("cv.sections.this_is_a_new_section", '["This is a text entry."]'),
("design.page_size", "a4paper"), ("design.page_size", "a4paper"),
("design", '{"theme": "engineeringresumes"}'), ("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.phone", "+9999995555555555"),
("cv.email", "notanemail***"), ("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"), ("design.page_size", "invalid_page_size"),
], ],
) )

View File

@ -97,6 +97,18 @@
\end{itemize} \end{itemize}
} % new environment for highlights } % 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}{ \newenvironment{onecolentry}{
\begin{adjustwidth}{ \begin{adjustwidth}{
@ -161,6 +173,8 @@
\section{Test} \section{Test}
\begin{onecolentry} \begin{onecolentry}
test test

View File

@ -97,6 +97,18 @@
\end{itemize} \end{itemize}
} % new environment for highlights } % 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}{ \newenvironment{onecolentry}{
\begin{adjustwidth}{ \begin{adjustwidth}{
@ -191,6 +203,8 @@
\section{Text Entries} \section{Text Entries}
\begin{onecolentry} \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. 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} \section{Bullet Entries}
\begin{onecolentry}
\begin{onecolentry} \begin{highlightsforbulletentries}
\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}
\item This is a bullet entry.
\item This is a bullet entry.
\end{highlightsforbulletentries}
\end{onecolentry}
\section{Publication Entries} \section{Publication Entries}
\begin{samepage} \begin{samepage}
\begin{onecolentry} \begin{onecolentry}
@ -346,6 +361,8 @@
\section{Experience Entries} \section{Experience Entries}
\begin{onecolentry} \begin{onecolentry}
\textbf{Some \textnormal{Company}}, Software Engineer \textbf{Some \textnormal{Company}}, Software Engineer
@ -725,6 +742,8 @@
\section{Education Entries} \section{Education Entries}
\begin{threecolentry}{\textbf{}}{ \begin{threecolentry}{\textbf{}}{
@ -1424,6 +1443,8 @@
\section{Normal Entries} \section{Normal Entries}
\begin{onecolentry} \begin{onecolentry}
\textbf{My Project} \textbf{My Project}
@ -1803,6 +1824,8 @@
\section{One Line Entries} \section{One Line Entries}
\begin{onecolentry} \begin{onecolentry}
\textbf{Pro\textnormal{gram}ming:} Python, C++, JavaScript, MATLAB \textbf{Pro\textnormal{gram}ming:} Python, C++, JavaScript, MATLAB

View File

@ -82,6 +82,18 @@
} % new environment for highlights } % 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}{ \newenvironment{onecolentry}{
\begin{adjustwidth}{ \begin{adjustwidth}{
0 cm + 0.00001 cm 0 cm + 0.00001 cm
@ -150,6 +162,8 @@
\section{Test} \section{Test}
\begin{onecolentry} \begin{onecolentry}
test test

View File

@ -82,6 +82,18 @@
} % new environment for highlights } % 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}{ \newenvironment{onecolentry}{
\begin{adjustwidth}{ \begin{adjustwidth}{
0 cm + 0.00001 cm 0 cm + 0.00001 cm
@ -198,6 +210,8 @@
\section{Text Entries} \section{Text Entries}
\begin{onecolentry} \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. 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} \section{Bullet Entries}
\begin{onecolentry}
\begin{onecolentry} \begin{highlightsforbulletentries}
\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}
\item This is a bullet entry.
\item This is a bullet entry.
\end{highlightsforbulletentries}
\end{onecolentry}
\section{Publication Entries} \section{Publication Entries}
\begin{samepage} \begin{samepage}
\begin{onecolentry} \begin{onecolentry}
@ -349,6 +364,8 @@
\section{Experience Entries} \section{Experience Entries}
\begin{onecolentry} \begin{onecolentry}
\textbf{Software Engineer}, Some \textbf{Company}\end{onecolentry} \textbf{Software Engineer}, Some \textbf{Company}\end{onecolentry}
@ -744,6 +761,8 @@
\section{Education Entries} \section{Education Entries}
\begin{onecolentry} \begin{onecolentry}
\textbf{Boğaziçi University}, Mechanical Engineering\end{onecolentry} \textbf{Boğaziçi University}, Mechanical Engineering\end{onecolentry}
@ -1531,6 +1550,8 @@
\section{Normal Entries} \section{Normal Entries}
\begin{onecolentry} \begin{onecolentry}
\textbf{My Project}\end{onecolentry} \textbf{My Project}\end{onecolentry}
@ -1926,6 +1947,8 @@
\section{One Line Entries} \section{One Line Entries}
\begin{onecolentry} \begin{onecolentry}
\textbf{Pro\textnormal{gram}ming:} Python, C++, JavaScript, MATLAB \textbf{Pro\textnormal{gram}ming:} Python, C++, JavaScript, MATLAB

View File

@ -86,6 +86,18 @@
\end{itemize} \end{itemize}
} % new environment for highlights } % 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}{ \newenvironment{onecolentry}{
\begin{adjustwidth}{ \begin{adjustwidth}{
@ -138,6 +150,8 @@
\section{Test} \section{Test}
\begin{onecolentry} \begin{onecolentry}
test test

View File

@ -86,6 +86,18 @@
\end{itemize} \end{itemize}
} % new environment for highlights } % 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}{ \newenvironment{onecolentry}{
\begin{adjustwidth}{ \begin{adjustwidth}{
@ -167,6 +179,8 @@
\section{Text Entries} \section{Text Entries}
\begin{onecolentry} \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. 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} \section{Bullet Entries}
\begin{onecolentry}
\begin{onecolentry} \begin{highlightsforbulletentries}
$\circ$ This is a bullet entry.
\end{onecolentry}
\vspace{0.2 cm}
\begin{onecolentry}
$\circ$ This is a bullet entry.
\end{onecolentry}
\item This is a bullet entry.
\item This is a bullet entry.
\end{highlightsforbulletentries}
\end{onecolentry}
\section{Publication Entries} \section{Publication Entries}
\begin{samepage} \begin{samepage}
\begin{onecolentry} \begin{onecolentry}
@ -318,6 +333,8 @@
\section{Experience Entries} \section{Experience Entries}
\begin{onecolentry} \begin{onecolentry}
\textbf{Software Engineer} \textbf{Software Engineer}
@ -843,6 +860,8 @@
\section{Education Entries} \section{Education Entries}
\begin{onecolentry} \begin{onecolentry}
\textbf{Boğaziçi University} \textbf{Boğaziçi University}
@ -1890,6 +1909,8 @@
\section{Normal Entries} \section{Normal Entries}
\begin{onecolentry} \begin{onecolentry}
\textbf{My Project} \textbf{My Project}
@ -2351,6 +2372,8 @@
\section{One Line Entries} \section{One Line Entries}
\begin{onecolentry} \begin{onecolentry}
\textbf{Pro\textnormal{gram}ming:} Python, C++, JavaScript, MATLAB \textbf{Pro\textnormal{gram}ming:} Python, C++, JavaScript, MATLAB

View File

@ -97,6 +97,18 @@
\end{itemize} \end{itemize}
} % new environment for highlights } % 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}{ \newenvironment{onecolentry}{
\begin{adjustwidth}{ \begin{adjustwidth}{
@ -161,6 +173,8 @@
\section{Test} \section{Test}
\begin{onecolentry} \begin{onecolentry}
test test

View File

@ -97,6 +97,18 @@
\end{itemize} \end{itemize}
} % new environment for highlights } % 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}{ \newenvironment{onecolentry}{
\begin{adjustwidth}{ \begin{adjustwidth}{
@ -191,6 +203,8 @@
\section{Text Entries} \section{Text Entries}
\begin{onecolentry} \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. 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} \section{Bullet Entries}
\begin{onecolentry}
\begin{onecolentry} \begin{highlightsforbulletentries}
\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}
\item This is a bullet entry.
\item This is a bullet entry.
\end{highlightsforbulletentries}
\end{onecolentry}
\section{Publication Entries} \section{Publication Entries}
\begin{samepage} \begin{samepage}
\begin{onecolentry} \begin{onecolentry}
@ -346,6 +361,8 @@
\section{Experience Entries} \section{Experience Entries}
\begin{onecolentry} \begin{onecolentry}
\textbf{Some \textnormal{Company}}, Software Engineer \textbf{Some \textnormal{Company}}, Software Engineer
@ -725,6 +742,8 @@
\section{Education Entries} \section{Education Entries}
\begin{threecolentry}{\textbf{}}{ \begin{threecolentry}{\textbf{}}{
@ -1424,6 +1443,8 @@
\section{Normal Entries} \section{Normal Entries}
\begin{onecolentry} \begin{onecolentry}
\textbf{My Project} \textbf{My Project}
@ -1803,6 +1824,8 @@
\section{One Line Entries} \section{One Line Entries}
\begin{onecolentry} \begin{onecolentry}
\textbf{Pro\textnormal{gram}ming:} Python, C++, JavaScript, MATLAB \textbf{Pro\textnormal{gram}ming:} Python, C++, JavaScript, MATLAB

View File

@ -82,6 +82,18 @@
} % new environment for highlights } % 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}{ \newenvironment{onecolentry}{
\begin{adjustwidth}{ \begin{adjustwidth}{
0 cm + 0.00001 cm 0 cm + 0.00001 cm
@ -150,6 +162,8 @@
\section{Test} \section{Test}
\begin{onecolentry} \begin{onecolentry}
test test

View File

@ -82,6 +82,18 @@
} % new environment for highlights } % 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}{ \newenvironment{onecolentry}{
\begin{adjustwidth}{ \begin{adjustwidth}{
0 cm + 0.00001 cm 0 cm + 0.00001 cm
@ -198,6 +210,8 @@
\section{Text Entries} \section{Text Entries}
\begin{onecolentry} \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. 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} \section{Bullet Entries}
\begin{onecolentry}
\begin{onecolentry} \begin{highlightsforbulletentries}
\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}
\item This is a bullet entry.
\item This is a bullet entry.
\end{highlightsforbulletentries}
\end{onecolentry}
\section{Publication Entries} \section{Publication Entries}
\begin{samepage} \begin{samepage}
\begin{onecolentry} \begin{onecolentry}
@ -349,6 +364,8 @@
\section{Experience Entries} \section{Experience Entries}
\begin{onecolentry} \begin{onecolentry}
\textbf{Software Engineer}, Some \textbf{Company}\end{onecolentry} \textbf{Software Engineer}, Some \textbf{Company}\end{onecolentry}
@ -744,6 +761,8 @@
\section{Education Entries} \section{Education Entries}
\begin{onecolentry} \begin{onecolentry}
\textbf{Boğaziçi University}, Mechanical Engineering\end{onecolentry} \textbf{Boğaziçi University}, Mechanical Engineering\end{onecolentry}
@ -1531,6 +1550,8 @@
\section{Normal Entries} \section{Normal Entries}
\begin{onecolentry} \begin{onecolentry}
\textbf{My Project}\end{onecolentry} \textbf{My Project}\end{onecolentry}
@ -1926,6 +1947,8 @@
\section{One Line Entries} \section{One Line Entries}
\begin{onecolentry} \begin{onecolentry}
\textbf{Pro\textnormal{gram}ming:} Python, C++, JavaScript, MATLAB \textbf{Pro\textnormal{gram}ming:} Python, C++, JavaScript, MATLAB

View File

@ -86,6 +86,18 @@
\end{itemize} \end{itemize}
} % new environment for highlights } % 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}{ \newenvironment{onecolentry}{
\begin{adjustwidth}{ \begin{adjustwidth}{
@ -138,6 +150,8 @@
\section{Test} \section{Test}
\begin{onecolentry} \begin{onecolentry}
test test

View File

@ -86,6 +86,18 @@
\end{itemize} \end{itemize}
} % new environment for highlights } % 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}{ \newenvironment{onecolentry}{
\begin{adjustwidth}{ \begin{adjustwidth}{
@ -167,6 +179,8 @@
\section{Text Entries} \section{Text Entries}
\begin{onecolentry} \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. 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} \section{Bullet Entries}
\begin{onecolentry}
\begin{onecolentry} \begin{highlightsforbulletentries}
$\circ$ This is a bullet entry.
\end{onecolentry}
\vspace{0.2 cm}
\begin{onecolentry}
$\circ$ This is a bullet entry.
\end{onecolentry}
\item This is a bullet entry.
\item This is a bullet entry.
\end{highlightsforbulletentries}
\end{onecolentry}
\section{Publication Entries} \section{Publication Entries}
\begin{samepage} \begin{samepage}
\begin{onecolentry} \begin{onecolentry}
@ -318,6 +333,8 @@
\section{Experience Entries} \section{Experience Entries}
\begin{onecolentry} \begin{onecolentry}
\textbf{Software Engineer} \textbf{Software Engineer}
@ -843,6 +860,8 @@
\section{Education Entries} \section{Education Entries}
\begin{onecolentry} \begin{onecolentry}
\textbf{Boğaziçi University} \textbf{Boğaziçi University}
@ -1890,6 +1909,8 @@
\section{Normal Entries} \section{Normal Entries}
\begin{onecolentry} \begin{onecolentry}
\textbf{My Project} \textbf{My Project}
@ -2351,6 +2372,8 @@
\section{One Line Entries} \section{One Line Entries}
\begin{onecolentry} \begin{onecolentry}
\textbf{Pro\textnormal{gram}ming:} Python, C++, JavaScript, MATLAB \textbf{Pro\textnormal{gram}ming:} Python, C++, JavaScript, MATLAB

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 467 KiB

After

Width:  |  Height:  |  Size: 467 KiB