Skip to content

Commit

Permalink
[l10n] Change how we format ngettext string
Browse files Browse the repository at this point in the history
otherwise causes the format placeholders to remain in the resulting
string and fails the tests
  • Loading branch information
atodorov committed Mar 24, 2019
1 parent 897d797 commit c4c37fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tcms/core/contrib/linkreference/tests.py
Expand Up @@ -100,5 +100,5 @@ def test_with_name_longer_than_64_chars(self): # pylint: disable=invalid-name
message = ngettext_lazy(
'Ensure this value has at most %(limit_value)d character (it has %(show_value)d).',
'Ensure this value has at most %(limit_value)d characters (it has %(show_value)d).',
'limit_value').format(limit_value=64, show_value=66)
'limit_value') % {'limit_value': 64, 'show_value': 66}
self.assertIn(message, result['response'])

0 comments on commit c4c37fe

Please sign in to comment.