use MONTH YEAR instead of MONTH, YEAR in last updated text

This commit is contained in:
Sina Atalay 2023-11-30 22:17:35 +01:00
parent ecc612f33f
commit 233cb52f18
2 changed files with 3 additions and 3 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

@ -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.")