mirror of https://github.com/eyhc1/rendercv.git
use MONTH YEAR instead of MONTH, YEAR in last updated text
This commit is contained in:
parent
ecc612f33f
commit
233cb52f18
|
@ -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:
|
||||
|
|
|
@ -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.")
|
||||
|
||||
|
|
Loading…
Reference in New Issue