diff options
| author | Claude Paroz <claude@2xlibre.net> | 2016-09-29 16:13:10 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2016-10-01 14:57:16 +0200 |
| commit | fa2f55cfd554c6f99653ffe0d40fd7ca74cb680e (patch) | |
| tree | 9fcc03004ae628a176dca0a98accc9ead4910021 /tests | |
| parent | 63bf615d5e5566e23ba698f95e64acfa9f2651ff (diff) | |
Refs #26940 -- Re-allowed makemessages without settings
Thanks Tim Graham for the review.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/i18n/test_extraction.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/i18n/test_extraction.py b/tests/i18n/test_extraction.py index 75b1d80b79..40ccc822d7 100644 --- a/tests/i18n/test_extraction.py +++ b/tests/i18n/test_extraction.py @@ -9,6 +9,8 @@ import time import warnings from unittest import skipUnless +from admin_scripts.tests import AdminScriptTestCase + from django.core import management from django.core.management import execute_from_command_line from django.core.management.base import CommandError @@ -713,3 +715,10 @@ class CustomLayoutExtractionTests(ExtractorTests): with open(app_de_locale, 'r') as fp: po_contents = force_text(fp.read()) self.assertMsgId('This app has a locale directory', po_contents) + + +class NoSettingsExtractionTests(AdminScriptTestCase): + def test_makemessages_no_settings(self): + out, err = self.run_django_admin(['makemessages', '-l', 'en', '-v', '0']) + self.assertNoOutput(err) + self.assertNoOutput(out) |
