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.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"),
],
)

View File

@ -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}{
@ -162,6 +174,8 @@
\section{Test}
\begin{onecolentry}
test
\end{onecolentry}

View File

@ -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}{
@ -192,6 +204,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.
\end{onecolentry}
@ -212,22 +226,23 @@
\section{Bullet Entries}
\begin{onecolentry}
\textbullet \hspace{3pt} This is a bullet entry.
\begin{highlightsforbulletentries}
\item This is a bullet entry.
\item This is a bullet entry.
\end{highlightsforbulletentries}
\end{onecolentry}
\vspace{0.2 cm}
\begin{onecolentry}
\textbullet \hspace{3pt} This is a bullet entry.
\end{onecolentry}
\section{Publication Entries}
\begin{samepage}
\begin{onecolentry}
\textbf{Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils}
@ -347,6 +362,8 @@
\section{Experience Entries}
\begin{onecolentry}
\textbf{Some \textnormal{Company}}, Software Engineer
\end{onecolentry}
@ -726,6 +743,8 @@
\section{Education Entries}
\begin{threecolentry}{\textbf{}}{
}
@ -1425,6 +1444,8 @@
\section{Normal Entries}
\begin{onecolentry}
\textbf{My Project}
\end{onecolentry}
@ -1804,6 +1825,8 @@
\section{One Line Entries}
\begin{onecolentry}
\textbf{Pro\textnormal{gram}ming:} Python, C++, JavaScript, MATLAB
\end{onecolentry}

View File

@ -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
@ -151,6 +163,8 @@
\section{Test}
\begin{onecolentry}
test
\end{onecolentry}

View File

@ -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
@ -199,6 +211,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.
\end{onecolentry}
@ -219,22 +233,23 @@
\section{Bullet Entries}
\begin{onecolentry}
\textbullet \hspace{3pt} This is a bullet entry.
\begin{highlightsforbulletentries}
\item This is a bullet entry.
\item This is a bullet entry.
\end{highlightsforbulletentries}
\end{onecolentry}
\vspace{0.2 cm}
\begin{onecolentry}
\textbullet \hspace{3pt} This is a bullet entry.
\end{onecolentry}
\section{Publication Entries}
\begin{samepage}
\begin{onecolentry}
\textbf{Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils}
@ -350,6 +365,8 @@
\section{Experience Entries}
\begin{onecolentry}
\textbf{Software Engineer}, Some \textbf{Company}\end{onecolentry}
@ -745,6 +762,8 @@
\section{Education Entries}
\begin{onecolentry}
\textbf{Boğaziçi University}, Mechanical Engineering\end{onecolentry}
@ -1532,6 +1551,8 @@
\section{Normal Entries}
\begin{onecolentry}
\textbf{My Project}\end{onecolentry}
@ -1927,6 +1948,8 @@
\section{One Line Entries}
\begin{onecolentry}
\textbf{Pro\textnormal{gram}ming:} Python, C++, JavaScript, MATLAB
\end{onecolentry}

View File

@ -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}{
@ -139,6 +151,8 @@
\section{Test}
\begin{onecolentry}
test
\end{onecolentry}

View File

@ -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}{
@ -168,6 +180,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.
\end{onecolentry}
@ -188,22 +202,23 @@
\section{Bullet Entries}
\begin{onecolentry}
$\circ$ This is a bullet entry.
\begin{highlightsforbulletentries}
\item This is a bullet entry.
\item This is a bullet entry.
\end{highlightsforbulletentries}
\end{onecolentry}
\vspace{0.2 cm}
\begin{onecolentry}
$\circ$ This is a bullet entry.
\end{onecolentry}
\section{Publication Entries}
\begin{samepage}
\begin{onecolentry}
\textbf{Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils}
@ -319,6 +334,8 @@
\section{Experience Entries}
\begin{onecolentry}
\textbf{Software Engineer}
@ -844,6 +861,8 @@
\section{Education Entries}
\begin{onecolentry}
\textbf{Boğaziçi University}
@ -1891,6 +1910,8 @@
\section{Normal Entries}
\begin{onecolentry}
\textbf{My Project}
\end{onecolentry}
@ -2352,6 +2373,8 @@
\section{One Line Entries}
\begin{onecolentry}
\textbf{Pro\textnormal{gram}ming:} Python, C++, JavaScript, MATLAB
\end{onecolentry}

View File

@ -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}{
@ -162,6 +174,8 @@
\section{Test}
\begin{onecolentry}
test
\end{onecolentry}

View File

@ -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}{
@ -192,6 +204,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.
\end{onecolentry}
@ -212,22 +226,23 @@
\section{Bullet Entries}
\begin{onecolentry}
\textbullet \hspace{3pt} This is a bullet entry.
\begin{highlightsforbulletentries}
\item This is a bullet entry.
\item This is a bullet entry.
\end{highlightsforbulletentries}
\end{onecolentry}
\vspace{0.2 cm}
\begin{onecolentry}
\textbullet \hspace{3pt} This is a bullet entry.
\end{onecolentry}
\section{Publication Entries}
\begin{samepage}
\begin{onecolentry}
\textbf{Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils}
@ -347,6 +362,8 @@
\section{Experience Entries}
\begin{onecolentry}
\textbf{Some \textnormal{Company}}, Software Engineer
\end{onecolentry}
@ -726,6 +743,8 @@
\section{Education Entries}
\begin{threecolentry}{\textbf{}}{
}
@ -1425,6 +1444,8 @@
\section{Normal Entries}
\begin{onecolentry}
\textbf{My Project}
\end{onecolentry}
@ -1804,6 +1825,8 @@
\section{One Line Entries}
\begin{onecolentry}
\textbf{Pro\textnormal{gram}ming:} Python, C++, JavaScript, MATLAB
\end{onecolentry}

View File

@ -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
@ -151,6 +163,8 @@
\section{Test}
\begin{onecolentry}
test
\end{onecolentry}

View File

@ -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
@ -199,6 +211,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.
\end{onecolentry}
@ -219,22 +233,23 @@
\section{Bullet Entries}
\begin{onecolentry}
\textbullet \hspace{3pt} This is a bullet entry.
\begin{highlightsforbulletentries}
\item This is a bullet entry.
\item This is a bullet entry.
\end{highlightsforbulletentries}
\end{onecolentry}
\vspace{0.2 cm}
\begin{onecolentry}
\textbullet \hspace{3pt} This is a bullet entry.
\end{onecolentry}
\section{Publication Entries}
\begin{samepage}
\begin{onecolentry}
\textbf{Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils}
@ -350,6 +365,8 @@
\section{Experience Entries}
\begin{onecolentry}
\textbf{Software Engineer}, Some \textbf{Company}\end{onecolentry}
@ -745,6 +762,8 @@
\section{Education Entries}
\begin{onecolentry}
\textbf{Boğaziçi University}, Mechanical Engineering\end{onecolentry}
@ -1532,6 +1551,8 @@
\section{Normal Entries}
\begin{onecolentry}
\textbf{My Project}\end{onecolentry}
@ -1927,6 +1948,8 @@
\section{One Line Entries}
\begin{onecolentry}
\textbf{Pro\textnormal{gram}ming:} Python, C++, JavaScript, MATLAB
\end{onecolentry}

View File

@ -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}{
@ -139,6 +151,8 @@
\section{Test}
\begin{onecolentry}
test
\end{onecolentry}

View File

@ -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}{
@ -168,6 +180,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.
\end{onecolentry}
@ -188,22 +202,23 @@
\section{Bullet Entries}
\begin{onecolentry}
$\circ$ This is a bullet entry.
\begin{highlightsforbulletentries}
\item This is a bullet entry.
\item This is a bullet entry.
\end{highlightsforbulletentries}
\end{onecolentry}
\vspace{0.2 cm}
\begin{onecolentry}
$\circ$ This is a bullet entry.
\end{onecolentry}
\section{Publication Entries}
\begin{samepage}
\begin{onecolentry}
\textbf{Magneto-Thermal Thin Shell Approximation for 3D Finite Element Analysis of No-Insulation Coils}
@ -319,6 +334,8 @@
\section{Experience Entries}
\begin{onecolentry}
\textbf{Software Engineer}
@ -844,6 +861,8 @@
\section{Education Entries}
\begin{onecolentry}
\textbf{Boğaziçi University}
@ -1891,6 +1910,8 @@
\section{Normal Entries}
\begin{onecolentry}
\textbf{My Project}
\end{onecolentry}
@ -2352,6 +2373,8 @@
\section{One Line Entries}
\begin{onecolentry}
\textbf{Pro\textnormal{gram}ming:} Python, C++, JavaScript, MATLAB
\end{onecolentry}

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 467 KiB

After

Width:  |  Height:  |  Size: 467 KiB