From 233cb52f1845db8652c0294e0ff7ebddc4c92b1f Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Thu, 30 Nov 2023 22:17:35 +0100 Subject: [PATCH] use MONTH YEAR instead of MONTH, YEAR in last updated text --- rendercv/rendering.py | 4 ++-- tests/test_rendering.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rendercv/rendering.py b/rendercv/rendering.py index b220487..9566b15 100644 --- a/rendercv/rendering.py +++ b/rendercv/rendering.py @@ -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: diff --git a/tests/test_rendering.py b/tests/test_rendering.py index e6a74e4..61fea74 100644 --- a/tests/test_rendering.py +++ b/tests/test_rendering.py @@ -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.")