mirror of https://github.com/eyhc1/rendercv.git
tests: update
This commit is contained in:
parent
07a40b6c79
commit
e2a3a48ca2
|
@ -129,12 +129,12 @@
|
|||
|
||||
\section{Test}
|
||||
|
||||
\begin{changemargin}{0.2 cm}{0.2 cm}
|
||||
\begingroup\leftskip=0.2 cm
|
||||
\advance\csname @rightskip\endcsname 0.2 cm
|
||||
\advance\rightskip 0.2 cm
|
||||
|
||||
test
|
||||
\end{changemargin}
|
||||
|
||||
|
||||
|
||||
\par\endgroup
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -155,20 +155,20 @@
|
|||
|
||||
\section{Section1}
|
||||
|
||||
\begin{changemargin}{0.2 cm}{0.2 cm}
|
||||
\begingroup\leftskip=0.2 cm
|
||||
\advance\csname @rightskip\endcsname 0.2 cm
|
||||
\advance\rightskip 0.2 cm
|
||||
|
||||
My Text Entry with some \textbf{markdown} and \href{https://example.com}{links}!
|
||||
\end{changemargin}
|
||||
|
||||
|
||||
|
||||
\par\endgroup
|
||||
|
||||
\vspace{0.2 cm}
|
||||
\begin{changemargin}{0.2 cm}{0.2 cm}
|
||||
\begingroup\leftskip=0.2 cm
|
||||
\advance\csname @rightskip\endcsname 0.2 cm
|
||||
\advance\rightskip 0.2 cm
|
||||
|
||||
My Text Entry with some \textbf{markdown} and \href{https://example.com}{links}!
|
||||
\end{changemargin}
|
||||
|
||||
|
||||
|
||||
\par\endgroup
|
||||
|
||||
|
||||
|
||||
|
@ -348,14 +348,37 @@
|
|||
\advance\csname @rightskip\endcsname 0.2 cm
|
||||
\advance\rightskip 0.2 cm
|
||||
|
||||
\textbf{Programming:} Python, C++, JavaScript, MATLAB \par\endgroup
|
||||
\textbf{Programming:} Python, C++, JavaScript, MATLAB
|
||||
\par\endgroup
|
||||
|
||||
\vspace{0.2 cm}
|
||||
\begingroup\leftskip=0.2 cm
|
||||
\advance\csname @rightskip\endcsname 0.2 cm
|
||||
\advance\rightskip 0.2 cm
|
||||
|
||||
\textbf{Programming:} Python, C++, JavaScript, MATLAB \par\endgroup
|
||||
\textbf{Programming:} Python, C++, JavaScript, MATLAB
|
||||
\par\endgroup
|
||||
|
||||
|
||||
|
||||
\section{Section7}
|
||||
|
||||
\begingroup\leftskip=0.2 cm
|
||||
\advance\csname @rightskip\endcsname 0.2 cm
|
||||
\advance\rightskip 0.2 cm
|
||||
|
||||
\textbullet \hspace{3pt} This is a bullet entry.
|
||||
\par\endgroup
|
||||
|
||||
|
||||
\vspace{0.2 cm}
|
||||
\begingroup\leftskip=0.2 cm
|
||||
\advance\csname @rightskip\endcsname 0.2 cm
|
||||
\advance\rightskip 0.2 cm
|
||||
|
||||
\textbullet \hspace{3pt} This is a bullet entry.
|
||||
\par\endgroup
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -145,5 +145,13 @@
|
|||
|
||||
|
||||
|
||||
\section{Section7}
|
||||
|
||||
\cvlistitem{This is a bullet entry.}
|
||||
|
||||
\cvlistitem{This is a bullet entry.}
|
||||
|
||||
|
||||
|
||||
|
||||
\end{document}
|
|
@ -97,6 +97,12 @@
|
|||
}
|
||||
}
|
||||
|
||||
\newcommand{\resumeItemWithoutBullet}[2]{
|
||||
\item[]\small{
|
||||
\ifthenelse{\equal{#1}{}}{#2}{\textbf{#1}{: #2}}
|
||||
}
|
||||
}
|
||||
|
||||
\newcommand{\resumeSubheading}[4]{
|
||||
\item
|
||||
\begin{tabularx}{0.98\textwidth-0.4 cm}[t]{X R{4.1 cm}}
|
||||
|
@ -114,6 +120,8 @@
|
|||
|
||||
\newcommand{\resumeSubItem}[2]{\resumeItem{#1}{#2}}
|
||||
|
||||
\newcommand{\resumeSubItemWithoutBullet}[2]{\resumeItemWithoutBullet{#1}{#2}}
|
||||
|
||||
\renewcommand{\labelitemii}{$\circ$}
|
||||
|
||||
\newcommand{\resumeSubHeadingListStart}{\begin{itemize}[left=0.2 cm, topsep=0pt, parsep=0.2 cm, partopsep=0pt, rightmargin=0.2 cm]}
|
||||
|
@ -133,7 +141,7 @@
|
|||
\section{Test}
|
||||
\resumeSubHeadingListStart
|
||||
|
||||
\resumeSubItem{}{test}
|
||||
\resumeSubItemWithoutBullet{}{test}
|
||||
|
||||
|
||||
\resumeSubHeadingListEnd
|
||||
|
|
|
@ -97,6 +97,12 @@
|
|||
}
|
||||
}
|
||||
|
||||
\newcommand{\resumeItemWithoutBullet}[2]{
|
||||
\item[]\small{
|
||||
\ifthenelse{\equal{#1}{}}{#2}{\textbf{#1}{: #2}}
|
||||
}
|
||||
}
|
||||
|
||||
\newcommand{\resumeSubheading}[4]{
|
||||
\item
|
||||
\begin{tabularx}{0.98\textwidth-0.4 cm}[t]{X R{4.1 cm}}
|
||||
|
@ -114,6 +120,8 @@
|
|||
|
||||
\newcommand{\resumeSubItem}[2]{\resumeItem{#1}{#2}}
|
||||
|
||||
\newcommand{\resumeSubItemWithoutBullet}[2]{\resumeItemWithoutBullet{#1}{#2}}
|
||||
|
||||
\renewcommand{\labelitemii}{$\circ$}
|
||||
|
||||
\newcommand{\resumeSubHeadingListStart}{\begin{itemize}[left=0.2 cm, topsep=0pt, parsep=0.2 cm, partopsep=0pt, rightmargin=0.2 cm]}
|
||||
|
@ -164,9 +172,9 @@
|
|||
\section{Section1}
|
||||
\resumeSubHeadingListStart
|
||||
|
||||
\resumeSubItem{}{My Text Entry with some \textbf{markdown} and \href{https://example.com}{links}!}
|
||||
\resumeSubItemWithoutBullet{}{My Text Entry with some \textbf{markdown} and \href{https://example.com}{links}!}
|
||||
|
||||
\resumeSubItem{}{My Text Entry with some \textbf{markdown} and \href{https://example.com}{links}!}
|
||||
\resumeSubItemWithoutBullet{}{My Text Entry with some \textbf{markdown} and \href{https://example.com}{links}!}
|
||||
|
||||
|
||||
\resumeSubHeadingListEnd
|
||||
|
@ -267,6 +275,15 @@
|
|||
{Python, C++, JavaScript, MATLAB}
|
||||
|
||||
|
||||
\resumeSubHeadingListEnd
|
||||
\section{Section7}
|
||||
\resumeSubHeadingListStart
|
||||
|
||||
\resumeSubItem{}{This is a bullet entry.}
|
||||
|
||||
\resumeSubItem{}{This is a bullet entry.}
|
||||
|
||||
|
||||
\resumeSubHeadingListEnd
|
||||
|
||||
\end{document}
|
|
@ -129,12 +129,12 @@
|
|||
|
||||
\section{Test}
|
||||
|
||||
\begin{changemargin}{0.2 cm}{0.2 cm}
|
||||
\begingroup\leftskip=0.2 cm
|
||||
\advance\csname @rightskip\endcsname 0.2 cm
|
||||
\advance\rightskip 0.2 cm
|
||||
|
||||
test
|
||||
\end{changemargin}
|
||||
|
||||
|
||||
|
||||
\par\endgroup
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -155,20 +155,20 @@
|
|||
|
||||
\section{Section1}
|
||||
|
||||
\begin{changemargin}{0.2 cm}{0.2 cm}
|
||||
\begingroup\leftskip=0.2 cm
|
||||
\advance\csname @rightskip\endcsname 0.2 cm
|
||||
\advance\rightskip 0.2 cm
|
||||
|
||||
My Text Entry with some \textbf{markdown} and \href{https://example.com}{links}!
|
||||
\end{changemargin}
|
||||
|
||||
|
||||
|
||||
\par\endgroup
|
||||
|
||||
\vspace{0.2 cm}
|
||||
\begin{changemargin}{0.2 cm}{0.2 cm}
|
||||
\begingroup\leftskip=0.2 cm
|
||||
\advance\csname @rightskip\endcsname 0.2 cm
|
||||
\advance\rightskip 0.2 cm
|
||||
|
||||
My Text Entry with some \textbf{markdown} and \href{https://example.com}{links}!
|
||||
\end{changemargin}
|
||||
|
||||
|
||||
|
||||
\par\endgroup
|
||||
|
||||
|
||||
|
||||
|
@ -348,14 +348,37 @@
|
|||
\advance\csname @rightskip\endcsname 0.2 cm
|
||||
\advance\rightskip 0.2 cm
|
||||
|
||||
\textbf{Programming:} Python, C++, JavaScript, MATLAB \par\endgroup
|
||||
\textbf{Programming:} Python, C++, JavaScript, MATLAB
|
||||
\par\endgroup
|
||||
|
||||
\vspace{0.2 cm}
|
||||
\begingroup\leftskip=0.2 cm
|
||||
\advance\csname @rightskip\endcsname 0.2 cm
|
||||
\advance\rightskip 0.2 cm
|
||||
|
||||
\textbf{Programming:} Python, C++, JavaScript, MATLAB \par\endgroup
|
||||
\textbf{Programming:} Python, C++, JavaScript, MATLAB
|
||||
\par\endgroup
|
||||
|
||||
|
||||
|
||||
\section{Section7}
|
||||
|
||||
\begingroup\leftskip=0.2 cm
|
||||
\advance\csname @rightskip\endcsname 0.2 cm
|
||||
\advance\rightskip 0.2 cm
|
||||
|
||||
\textbullet \hspace{3pt} This is a bullet entry.
|
||||
\par\endgroup
|
||||
|
||||
|
||||
\vspace{0.2 cm}
|
||||
\begingroup\leftskip=0.2 cm
|
||||
\advance\csname @rightskip\endcsname 0.2 cm
|
||||
\advance\rightskip 0.2 cm
|
||||
|
||||
\textbullet \hspace{3pt} This is a bullet entry.
|
||||
\par\endgroup
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -145,5 +145,13 @@
|
|||
|
||||
|
||||
|
||||
\section{Section7}
|
||||
|
||||
\cvlistitem{This is a bullet entry.}
|
||||
|
||||
\cvlistitem{This is a bullet entry.}
|
||||
|
||||
|
||||
|
||||
|
||||
\end{document}
|
|
@ -97,6 +97,12 @@
|
|||
}
|
||||
}
|
||||
|
||||
\newcommand{\resumeItemWithoutBullet}[2]{
|
||||
\item[]\small{
|
||||
\ifthenelse{\equal{#1}{}}{#2}{\textbf{#1}{: #2}}
|
||||
}
|
||||
}
|
||||
|
||||
\newcommand{\resumeSubheading}[4]{
|
||||
\item
|
||||
\begin{tabularx}{0.98\textwidth-0.4 cm}[t]{X R{4.1 cm}}
|
||||
|
@ -114,6 +120,8 @@
|
|||
|
||||
\newcommand{\resumeSubItem}[2]{\resumeItem{#1}{#2}}
|
||||
|
||||
\newcommand{\resumeSubItemWithoutBullet}[2]{\resumeItemWithoutBullet{#1}{#2}}
|
||||
|
||||
\renewcommand{\labelitemii}{$\circ$}
|
||||
|
||||
\newcommand{\resumeSubHeadingListStart}{\begin{itemize}[left=0.2 cm, topsep=0pt, parsep=0.2 cm, partopsep=0pt, rightmargin=0.2 cm]}
|
||||
|
@ -133,7 +141,7 @@
|
|||
\section{Test}
|
||||
\resumeSubHeadingListStart
|
||||
|
||||
\resumeSubItem{}{test}
|
||||
\resumeSubItemWithoutBullet{}{test}
|
||||
|
||||
|
||||
\resumeSubHeadingListEnd
|
||||
|
|
|
@ -97,6 +97,12 @@
|
|||
}
|
||||
}
|
||||
|
||||
\newcommand{\resumeItemWithoutBullet}[2]{
|
||||
\item[]\small{
|
||||
\ifthenelse{\equal{#1}{}}{#2}{\textbf{#1}{: #2}}
|
||||
}
|
||||
}
|
||||
|
||||
\newcommand{\resumeSubheading}[4]{
|
||||
\item
|
||||
\begin{tabularx}{0.98\textwidth-0.4 cm}[t]{X R{4.1 cm}}
|
||||
|
@ -114,6 +120,8 @@
|
|||
|
||||
\newcommand{\resumeSubItem}[2]{\resumeItem{#1}{#2}}
|
||||
|
||||
\newcommand{\resumeSubItemWithoutBullet}[2]{\resumeItemWithoutBullet{#1}{#2}}
|
||||
|
||||
\renewcommand{\labelitemii}{$\circ$}
|
||||
|
||||
\newcommand{\resumeSubHeadingListStart}{\begin{itemize}[left=0.2 cm, topsep=0pt, parsep=0.2 cm, partopsep=0pt, rightmargin=0.2 cm]}
|
||||
|
@ -164,9 +172,9 @@
|
|||
\section{Section1}
|
||||
\resumeSubHeadingListStart
|
||||
|
||||
\resumeSubItem{}{My Text Entry with some \textbf{markdown} and \href{https://example.com}{links}!}
|
||||
\resumeSubItemWithoutBullet{}{My Text Entry with some \textbf{markdown} and \href{https://example.com}{links}!}
|
||||
|
||||
\resumeSubItem{}{My Text Entry with some \textbf{markdown} and \href{https://example.com}{links}!}
|
||||
\resumeSubItemWithoutBullet{}{My Text Entry with some \textbf{markdown} and \href{https://example.com}{links}!}
|
||||
|
||||
|
||||
\resumeSubHeadingListEnd
|
||||
|
@ -267,6 +275,15 @@
|
|||
{Python, C++, JavaScript, MATLAB}
|
||||
|
||||
|
||||
\resumeSubHeadingListEnd
|
||||
\section{Section7}
|
||||
\resumeSubHeadingListStart
|
||||
|
||||
\resumeSubItem{}{This is a bullet entry.}
|
||||
|
||||
\resumeSubItem{}{This is a bullet entry.}
|
||||
|
||||
|
||||
\resumeSubHeadingListEnd
|
||||
|
||||
\end{document}
|
|
@ -76,3 +76,7 @@ My Text Entry with some **markdown** and [links](https://example.com)!
|
|||
|
||||
- Programming: Python, C++, JavaScript, MATLAB
|
||||
- Programming: Python, C++, JavaScript, MATLAB
|
||||
# Section7
|
||||
|
||||
- This is a bullet entry.
|
||||
- This is a bullet entry.
|
||||
|
|
|
@ -76,3 +76,7 @@ My Text Entry with some **markdown** and [links](https://example.com)!
|
|||
|
||||
- Programming: Python, C++, JavaScript, MATLAB
|
||||
- Programming: Python, C++, JavaScript, MATLAB
|
||||
# Section7
|
||||
|
||||
- This is a bullet entry.
|
||||
- This is a bullet entry.
|
||||
|
|
|
@ -76,3 +76,7 @@ My Text Entry with some **markdown** and [links](https://example.com)!
|
|||
|
||||
- Programming: Python, C++, JavaScript, MATLAB
|
||||
- Programming: Python, C++, JavaScript, MATLAB
|
||||
# Section7
|
||||
|
||||
- This is a bullet entry.
|
||||
- This is a bullet entry.
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -72,4 +72,9 @@
|
|||
<ul>
|
||||
<li>Programming: Python, C++, JavaScript, MATLAB</li>
|
||||
<li>Programming: Python, C++, JavaScript, MATLAB</li>
|
||||
</ul>
|
||||
<h1>Section7</h1>
|
||||
<ul>
|
||||
<li>This is a bullet entry.</li>
|
||||
<li>This is a bullet entry.</li>
|
||||
</ul>
|
|
@ -72,4 +72,9 @@
|
|||
<ul>
|
||||
<li>Programming: Python, C++, JavaScript, MATLAB</li>
|
||||
<li>Programming: Python, C++, JavaScript, MATLAB</li>
|
||||
</ul>
|
||||
<h1>Section7</h1>
|
||||
<ul>
|
||||
<li>This is a bullet entry.</li>
|
||||
<li>This is a bullet entry.</li>
|
||||
</ul>
|
|
@ -72,4 +72,9 @@
|
|||
<ul>
|
||||
<li>Programming: Python, C++, JavaScript, MATLAB</li>
|
||||
<li>Programming: Python, C++, JavaScript, MATLAB</li>
|
||||
</ul>
|
||||
<h1>Section7</h1>
|
||||
<ul>
|
||||
<li>This is a bullet entry.</li>
|
||||
<li>This is a bullet entry.</li>
|
||||
</ul>
|
|
@ -68,6 +68,10 @@ one_line_entry_dictionary = {
|
|||
"details": "Python, C++, JavaScript, MATLAB",
|
||||
}
|
||||
|
||||
bullet_entry_dictionary = {
|
||||
"bullet": "This is a bullet entry.",
|
||||
}
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def publication_entry() -> dict[str, str | list[str]]:
|
||||
|
@ -94,6 +98,11 @@ def one_line_entry() -> dict[str, str]:
|
|||
return copy.deepcopy(one_line_entry_dictionary)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def bullet_entry() -> dict[str, str]:
|
||||
return copy.deepcopy(bullet_entry_dictionary)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def text_entry() -> str:
|
||||
return "My Text Entry with some **markdown** and [links](https://example.com)!"
|
||||
|
@ -117,6 +126,7 @@ def rendercv_filled_curriculum_vitae_data_model(
|
|||
education_entry,
|
||||
normal_entry,
|
||||
one_line_entry,
|
||||
bullet_entry,
|
||||
) -> dm.CurriculumVitae:
|
||||
publication_entry_without_doi = copy.deepcopy(publication_entry)
|
||||
del publication_entry_without_doi["doi"]
|
||||
|
@ -160,6 +170,10 @@ def rendercv_filled_curriculum_vitae_data_model(
|
|||
one_line_entry,
|
||||
one_line_entry,
|
||||
],
|
||||
"section7": [
|
||||
bullet_entry,
|
||||
bullet_entry,
|
||||
],
|
||||
},
|
||||
)
|
||||
|
||||
|
|
|
@ -365,6 +365,7 @@ def test_social_network_url(network, username, expected_url):
|
|||
),
|
||||
("one_line_entry", "OneLineEntry", "SectionWithOneLineEntries"),
|
||||
("text_entry", "TextEntry", "SectionWithTextEntries"),
|
||||
("bullet_entry", "BulletEntry", "SectionWithBulletEntries"),
|
||||
],
|
||||
)
|
||||
def test_get_entry_and_section_type(
|
||||
|
|
|
@ -414,16 +414,14 @@ def test_copy_theme_files_to_output_directory_custom_theme(
|
|||
custom_theme_directory_path.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
# create a txt file called test.txt in the custom theme directory:
|
||||
pathlib.Path(custom_theme_directory_path / "EducationEntry.j2.tex").touch()
|
||||
pathlib.Path(custom_theme_directory_path / "ExperienceEntry.j2.tex").touch()
|
||||
for entry_type_name in dm.entry_type_names:
|
||||
pathlib.Path(
|
||||
custom_theme_directory_path / f"{entry_type_name}.j2.tex"
|
||||
).touch()
|
||||
pathlib.Path(custom_theme_directory_path / "Header.j2.tex").touch()
|
||||
pathlib.Path(custom_theme_directory_path / "NormalEntry.j2.tex").touch()
|
||||
pathlib.Path(custom_theme_directory_path / "OneLineEntry.j2.tex").touch()
|
||||
pathlib.Path(custom_theme_directory_path / "Preamble.j2.tex").touch()
|
||||
pathlib.Path(custom_theme_directory_path / "PublicationEntry.j2.tex").touch()
|
||||
pathlib.Path(custom_theme_directory_path / "SectionBeginning.j2.tex").touch()
|
||||
pathlib.Path(custom_theme_directory_path / "SectionEnding.j2.tex").touch()
|
||||
pathlib.Path(custom_theme_directory_path / "TextEntry.j2.tex").touch()
|
||||
pathlib.Path(custom_theme_directory_path / "theme_auxiliary_file.cls").touch()
|
||||
pathlib.Path(custom_theme_directory_path / "theme_auxiliary_dir").mkdir(
|
||||
exist_ok=True
|
||||
|
|
Loading…
Reference in New Issue