Merge branch 'main' into jpg/mastodon

This commit is contained in:
Jeffrey Goldberg 2023-12-03 01:09:01 -06:00
commit 7aa7e66523
3 changed files with 4 additions and 4 deletions

View File

@ -265,14 +265,14 @@ def divide_length_by(length: str, divider: float) -> 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:
str: Today's date.
"""
today = date.today()
return today.strftime("%B, %Y")
return today.strftime("%B %Y")
def get_path_to_font_directory(font_name: str) -> str:

View File

@ -109,7 +109,7 @@
\LenToUnit{\paperwidth-1.24 cm-0.2 cm+0.05cm},
\LenToUnit{\paperheight-1.0 cm}
){\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}}
}}}%
}%
}%

View File

@ -188,7 +188,7 @@ class TestRendering(unittest.TestCase):
self.assertEqual(rendering.divide_length_by(length, divider), exp)
def test_get_today(self):
expected = date.today().strftime("%B, %Y")
expected = date.today().strftime("%B %Y")
result = rendering.get_today()
self.assertEqual(expected, result, msg="Today's date is not correct.")