diff options
| author | Tim Graham <timograham@gmail.com> | 2017-09-02 19:54:21 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-09-22 12:51:17 -0400 |
| commit | 87d2240e6cc594a3bf28dfdb2ec023c54fb76ff7 (patch) | |
| tree | cd65911ca3f88660455989bed8634eef1a4fc484 /tests | |
| parent | 9463a7a8cdffc21b38c469e882b2763c2d290fe2 (diff) | |
Refs #27067 -- Removed django.utils.translation.string_concat() per deprecation timeline.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/i18n/tests.py | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/tests/i18n/tests.py b/tests/i18n/tests.py index 449def5363..2cbf18f573 100644 --- a/tests/i18n/tests.py +++ b/tests/i18n/tests.py @@ -12,11 +12,9 @@ from django.conf import settings from django.conf.urls.i18n import i18n_patterns from django.template import Context, Template from django.test import ( - RequestFactory, SimpleTestCase, TestCase, ignore_warnings, - override_settings, + RequestFactory, SimpleTestCase, TestCase, override_settings, ) from django.utils import translation -from django.utils.deprecation import RemovedInDjango21Warning from django.utils.formats import ( date_format, get_format, get_format_modules, iter_format_modules, localize, localize_input, reset_format_cache, sanitize_separators, time_format, @@ -27,8 +25,8 @@ from django.utils.translation import ( LANGUAGE_SESSION_KEY, activate, check_for_language, deactivate, get_language, get_language_bidi, get_language_from_request, get_language_info, gettext, gettext_lazy, ngettext, ngettext_lazy, - npgettext, npgettext_lazy, pgettext, string_concat, to_locale, trans_real, - ugettext, ugettext_lazy, ungettext, ungettext_lazy, + npgettext, npgettext_lazy, pgettext, to_locale, trans_real, ugettext, + ugettext_lazy, ungettext, ungettext_lazy, ) from .forms import CompanyForm, I18nForm, SelectDateForm @@ -216,10 +214,6 @@ class TranslationTests(SimpleTestCase): self.assertEqual(pgettext("verb", "May"), "Kann") self.assertEqual(npgettext("search", "%d result", "%d results", 4) % 4, "4 Resultate") - @ignore_warnings(category=RemovedInDjango21Warning) - def test_string_concat(self): - self.assertEqual(str(string_concat('dja', 'ngo')), 'django') - def test_empty_value(self): """Empty value must stay empty after being translated (#23196).""" with translation.override('de'): |
