forked from pool/python-Django
Ondřej Súkup
d10664759b
- update to 2.2 - drop pyyaml5.patch - add i18n_test.patch * HttpRequest.headers to allow simple access to a request’s headers. * Database-level constraints on models. * Watchman compatibility for runserver to improve the performance OBS-URL: https://build.opensuse.org/request/show/691028 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:django/python-Django?expand=0&rev=24
14 lines
670 B
Diff
14 lines
670 B
Diff
Index: Django-2.2/tests/i18n/tests.py
|
|
===================================================================
|
|
--- Django-2.2.orig/tests/i18n/tests.py
|
|
+++ Django-2.2/tests/i18n/tests.py
|
|
@@ -1820,7 +1820,7 @@ class WatchForTranslationChangesTests(Si
|
|
|
|
def test_i18n_app_dirs(self):
|
|
mocked_sender = mock.MagicMock()
|
|
- with self.settings(INSTALLED_APPS=['tests.i18n.sampleproject']):
|
|
+ with self.settings(INSTALLED_APPS=['i18n.sampleproject']):
|
|
watch_for_translation_changes(mocked_sender)
|
|
project_dir = Path(__file__).parent / 'sampleproject' / 'locale'
|
|
mocked_sender.watch_dir.assert_any_call(project_dir, '**/*.mo')
|