From 30058a7c3109ca47388bbffa328ec530157f146e Mon Sep 17 00:00:00 2001 From: Guillaume Englert Date: Mon, 8 Jan 2024 14:13:53 +0100 Subject: [PATCH] Fix some unit tests (year change). --- creme/creme_core/tests/forms/test_widgets.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/creme/creme_core/tests/forms/test_widgets.py b/creme/creme_core/tests/forms/test_widgets.py index 11a68df2de..20b833dfec 100644 --- a/creme/creme_core/tests/forms/test_widgets.py +++ b/creme/creme_core/tests/forms/test_widgets.py @@ -46,7 +46,7 @@ class CalendarWidgetTestCase(CremeTestCase): def test_render_no_l10n_01(self): name = 'test_calendar' value = self.formfield_value_date(2022, 2, 25) - help_text = _('E.g. {}').format('2023-12-31') + help_text = _('E.g. {}').format('2024-12-31') self.assertHTMLEqual( f'
' f'
{help_text}
' @@ -62,7 +62,7 @@ def test_render_no_l10n_02(self): "Other format, value, name..." name = 'my_calendar' value = self.formfield_value_date(2023, 3, 26) - help_text = _('E.g. {}').format('31/12/2023') + help_text = _('E.g. {}').format('31/12/2024') self.assertHTMLEqual( f'
' f'
{help_text}
' @@ -78,7 +78,7 @@ def test_render_no_l10n_02(self): def test_render_l10n_en(self): name = 'my_calendar' value = self.formfield_value_date(2023, 3, 26) - help_text = _('E.g. {}').format('2023-12-31') + help_text = _('E.g. {}').format('2024-12-31') self.assertHTMLEqual( f'
' f'
{help_text}
' @@ -94,7 +94,7 @@ def test_render_l10n_en(self): def test_render_l10n_fr(self): name = 'calendar' value = self.formfield_value_date(2024, 4, 27) - help_text = _('E.g. {}').format('31/12/2023') + help_text = _('E.g. {}').format('31/12/2024') self.assertHTMLEqual( f'
' f'
{help_text}
'