mirror of https://github.com/eyhc1/rendercv.git
Merge branch 'main' into jpg/mastodon
This commit is contained in:
commit
7aa7e66523
|
@ -265,14 +265,14 @@ def divide_length_by(length: str, divider: float) -> str:
|
||||||
|
|
||||||
|
|
||||||
def get_today() -> str:
|
def get_today() -> str:
|
||||||
"""Return today's date in the format of "Month, Year".
|
"""Return today's date in the format of "Month Year".
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
str: Today's date.
|
str: Today's date.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
today = date.today()
|
today = date.today()
|
||||||
return today.strftime("%B, %Y")
|
return today.strftime("%B %Y")
|
||||||
|
|
||||||
|
|
||||||
def get_path_to_font_directory(font_name: str) -> str:
|
def get_path_to_font_directory(font_name: str) -> str:
|
||||||
|
|
|
@ -109,7 +109,7 @@
|
||||||
\LenToUnit{\paperwidth-1.24 cm-0.2 cm+0.05cm},
|
\LenToUnit{\paperwidth-1.24 cm-0.2 cm+0.05cm},
|
||||||
\LenToUnit{\paperheight-1.0 cm}
|
\LenToUnit{\paperheight-1.0 cm}
|
||||||
){\vtop{{\null}\makebox[0pt][c]{
|
){\vtop{{\null}\makebox[0pt][c]{
|
||||||
\small\color{gray}\textit{Last updated in November, 2023}\hspace{\widthof{Last updated in November, 2023}}
|
\small\color{gray}\textit{Last updated in REPLACETHISWITHTODAY}\hspace{\widthof{Last updated in REPLACETHISWITHTODAY}}
|
||||||
}}}%
|
}}}%
|
||||||
}%
|
}%
|
||||||
}%
|
}%
|
||||||
|
|
|
@ -188,7 +188,7 @@ class TestRendering(unittest.TestCase):
|
||||||
self.assertEqual(rendering.divide_length_by(length, divider), exp)
|
self.assertEqual(rendering.divide_length_by(length, divider), exp)
|
||||||
|
|
||||||
def test_get_today(self):
|
def test_get_today(self):
|
||||||
expected = date.today().strftime("%B, %Y")
|
expected = date.today().strftime("%B %Y")
|
||||||
result = rendering.get_today()
|
result = rendering.get_today()
|
||||||
self.assertEqual(expected, result, msg="Today's date is not correct.")
|
self.assertEqual(expected, result, msg="Today's date is not correct.")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue