1
0
forked from pool/python-Django
python-Django/i18n_test.patch
Ondřej Súkup d10664759b Accepting request 691028 from home:mimi_vx:branches:devel:languages:python:django
- 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
2019-04-03 12:52:28 +00:00

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')