diff options
| author | Tom Forbes <tom@tomforb.es> | 2020-04-18 21:32:19 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-05-04 09:13:47 +0200 |
| commit | c00bc27945d195295101c695e2a901b06b10fe96 (patch) | |
| tree | 1b479c0b9279ba94a124d8862f2aacaaede192a5 /tests | |
| parent | 8f10ceaa907f3f608494f782f65070d0bb8b9587 (diff) | |
Refs #30372 -- Stopped watching built-in Django translation files by auto-reloader.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/i18n/tests.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/i18n/tests.py b/tests/i18n/tests.py index cce32ea86c..8f07c14247 100644 --- a/tests/i18n/tests.py +++ b/tests/i18n/tests.py @@ -1865,6 +1865,12 @@ class WatchForTranslationChangesTests(SimpleTestCase): project_dir = Path(__file__).parent / 'sampleproject' / 'locale' mocked_sender.watch_dir.assert_any_call(project_dir, '**/*.mo') + def test_i18n_app_dirs_ignore_django_apps(self): + mocked_sender = mock.MagicMock() + with self.settings(INSTALLED_APPS=['django.contrib.admin']): + watch_for_translation_changes(mocked_sender) + mocked_sender.watch_dir.assert_called_once_with(Path('locale'), '**/*.mo') + def test_i18n_local_locale(self): mocked_sender = mock.MagicMock() watch_for_translation_changes(mocked_sender) |
