Skip to content

Commit

Permalink
Fix some unit tests (year change).
Browse files Browse the repository at this point in the history
  • Loading branch information
genglert committed Jan 8, 2024
1 parent 90d86b4 commit 30058a7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions creme/creme_core/tests/forms/test_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'<div class="creme-datepicker">'
f' <div class="help-text-format">{help_text}</div>'
Expand All @@ -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'<div class="creme-datepicker">'
f' <div class="help-text-format">{help_text}</div>'
Expand All @@ -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'<div class="creme-datepicker">'
f' <div class="help-text-format">{help_text}</div>'
Expand All @@ -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'<div class="creme-datepicker">'
f' <div class="help-text-format">{help_text}</div>'
Expand Down

0 comments on commit 30058a7

Please sign in to comment.